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 authored and songjiaxun committed Nov 22, 2023
1 parent 97b2959 commit d2e51b3
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 d2e51b3

Please sign in to comment.