Skip to content

Commit

Permalink
improve invalid path error
Browse files Browse the repository at this point in the history
  • Loading branch information
seanyeh committed Jan 30, 2025
1 parent 265aaf2 commit d73aa74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/esc/cli/env_rotate.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func newEnvRotateCmd(envcmd *envCommand) *cobra.Command {
for _, arg := range args[1:] {
_, err := resource.ParsePropertyPath(arg)
if err != nil {
return fmt.Errorf("invalid path: %w", err)
return fmt.Errorf("'%s' is an invalid property path: %w", arg, err)
}
rotationPaths = append(rotationPaths, arg)
}
Expand Down

0 comments on commit d73aa74

Please sign in to comment.