Skip to content

Commit

Permalink
show correct arguments in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hime committed Nov 22, 2023
1 parent 55a4be2 commit a7d0c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/webhook/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ func LoadConfig(containerImage, imagePullPolicy, cpuLimit, memoryLimit, ephemera
}
m, err := resource.ParseQuantity(memoryLimit)
if err != nil {
return nil, fmt.Errorf("failed to parse memory limit %q: %w", cpuLimit, err)
return nil, fmt.Errorf("failed to parse memory limit %q: %w", memoryLimit, err)
}
e, err := resource.ParseQuantity(ephemeralStorageLimit)
if err != nil {
return nil, fmt.Errorf("failed to parse ephemeral storage limit %q: %w", cpuLimit, err)
return nil, fmt.Errorf("failed to parse ephemeral storage limit %q: %w", ephemeralStorageLimit, err)
}
cfg := &Config{
ContainerImage: containerImage,
Expand Down

0 comments on commit a7d0c68

Please sign in to comment.