Skip to content

Commit

Permalink
improve error msg for append user flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerebrovinny committed Oct 24, 2024
1 parent a98ee34 commit 5bc2111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/exec/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ func processArgsAndFlags(componentType string, inputArgsAndFlags []string) (sche

if arg == cfg.AppendUserAgentFlag {
if len(inputArgsAndFlags) <= (i + 1) {
return info, fmt.Errorf("invalid flag: %s requires a value", arg)
return info, fmt.Errorf("invalid flag: %s requires a value (e.g. %s 'Atmos/1.0' or %s='Atmos/1.0')", arg, arg, arg)
}
info.AppendUserAgent = inputArgsAndFlags[i+1]
indexesToRemove = append(indexesToRemove, i, i+1)
Expand Down

0 comments on commit 5bc2111

Please sign in to comment.