diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-02-22 23:30:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-22 23:30:13 +0100 |
commit | c00bf28f24e2eed435c156cd1aabe59c10fe9824 (patch) | |
tree | 00d77a3ca6f0f165ade4c3a4b29cfe227a9b755f /cmd/podman/pull.go | |
parent | e6cc5706cd337664cf3c38bca9c9caf524621161 (diff) | |
parent | 3775c6dc636f460a4efae8b6751bae6a881e5f0a (diff) | |
download | podman-c00bf28f24e2eed435c156cd1aabe59c10fe9824.tar.gz podman-c00bf28f24e2eed435c156cd1aabe59c10fe9824.tar.bz2 podman-c00bf28f24e2eed435c156cd1aabe59c10fe9824.zip |
Merge pull request #2406 from rhatdan/errors
Exit with errors not just logging error
Diffstat (limited to 'cmd/podman/pull.go')
-rw-r--r-- | cmd/podman/pull.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cmd/podman/pull.go b/cmd/podman/pull.go index 0065e975a..476bccb0e 100644 --- a/cmd/podman/pull.go +++ b/cmd/podman/pull.go @@ -74,19 +74,16 @@ func pullCmd(c *cliconfig.PullValues) error { args := c.InputArgs if len(args) == 0 { - logrus.Errorf("an image name must be specified") - return nil + return errors.Errorf("an image name must be specified") } if len(args) > 1 { - logrus.Errorf("too many arguments. Requires exactly 1") - return nil + return errors.Errorf("too many arguments. Requires exactly 1") } arr := strings.SplitN(args[0], ":", 2) if len(arr) == 2 { if c.Bool("all-tags") { - logrus.Errorf("tag can't be used with --all-tags") - return nil + return errors.Errorf("tag can't be used with --all-tags") } } ctx := getContext() |