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/runlabel.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/runlabel.go')
-rw-r--r-- | cmd/podman/runlabel.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/podman/runlabel.go b/cmd/podman/runlabel.go index 54f210e62..d466651f3 100644 --- a/cmd/podman/runlabel.go +++ b/cmd/podman/runlabel.go @@ -13,7 +13,6 @@ import ( "github.com/containers/libpod/libpod/image" "github.com/containers/libpod/utils" "github.com/pkg/errors" - "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -87,8 +86,7 @@ func runlabelCmd(c *cliconfig.RunlabelValues) error { args := c.InputArgs if len(args) < 2 { - logrus.Errorf("the runlabel command requires at least 2 arguments: LABEL IMAGE") - return nil + return errors.Errorf("the runlabel command requires at least 2 arguments: LABEL IMAGE") } if c.Display && c.Quiet { return errors.Errorf("the display and quiet flags cannot be used together.") |