diff options
author | Markus Thömmes <markusthoemmes@me.com> | 2021-11-04 16:12:34 +0100 |
---|---|---|
committer | Markus Thömmes <markusthoemmes@me.com> | 2021-11-05 09:34:22 +0100 |
commit | 756dda298c76b54a4401b7497bbff297dcf4014f (patch) | |
tree | 2f04a1fc5b4da11d38d35969b842977ede578af2 /cmd | |
parent | 184de3955ca8cb57e091a1b6006514aade885a59 (diff) | |
download | podman-756dda298c76b54a4401b7497bbff297dcf4014f.tar.gz podman-756dda298c76b54a4401b7497bbff297dcf4014f.tar.bz2 podman-756dda298c76b54a4401b7497bbff297dcf4014f.zip |
Keep error semantics intact
Signed-off-by: Markus Thömmes <markusthoemmes@me.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/validate/args.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/validate/args.go b/cmd/podman/validate/args.go index dde45cc29..6b5425a69 100644 --- a/cmd/podman/validate/args.go +++ b/cmd/podman/validate/args.go @@ -27,7 +27,8 @@ func SubCommandExists(cmd *cobra.Command, args []string) error { } return errors.Errorf("unrecognized command `%[1]s %[2]s`\n\nDid you mean this?\n\t%[3]s\n\nTry '%[1]s --help' for more information.", cmd.CommandPath(), args[0], strings.Join(suggestions, "\n\t")) } - return cmd.Help() + cmd.Help() + return errors.Errorf("missing command '%[1]s COMMAND'", cmd.CommandPath()) } // IDOrLatestArgs used to validate a nameOrId was provided or the "--latest" flag |