summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-04-12 14:19:11 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-04-12 14:23:52 +0200
commit6f3d2edc2beb8d18452cdd7b3b1ef7f05b90f5c5 (patch)
tree46a4a0bc1de371feb26dda16610e36d59b86bebd /cmd/podman
parent387d6012ba5ef0860df665132c1e3e3017405b8f (diff)
downloadpodman-6f3d2edc2beb8d18452cdd7b3b1ef7f05b90f5c5.tar.gz
podman-6f3d2edc2beb8d18452cdd7b3b1ef7f05b90f5c5.tar.bz2
podman-6f3d2edc2beb8d18452cdd7b3b1ef7f05b90f5c5.zip
pull: remove cryptic error message
we were printing something like: (0x1840f00,0xc00041bba0) Closes: https://github.com/containers/libpod/issues/2710 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/pull.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/pull.go b/cmd/podman/pull.go
index 491d3a8c2..aa000fc52 100644
--- a/cmd/podman/pull.go
+++ b/cmd/podman/pull.go
@@ -61,7 +61,7 @@ func init() {
// pullCmd gets the data from the command line and calls pullImage
// to copy an image from a registry to a local machine
-func pullCmd(c *cliconfig.PullValues) error {
+func pullCmd(c *cliconfig.PullValues) (retError error) {
if c.Bool("trace") {
span, _ := opentracing.StartSpanFromContext(Ctx, "pullCmd")
defer span.Finish()
@@ -163,7 +163,7 @@ func pullCmd(c *cliconfig.PullValues) error {
for _, name := range names {
newImage, err := runtime.New(getContext(), name, c.String("signature-policy"), authfile, writer, &dockerRegistryOptions, image.SigningOptions{}, true, nil)
if err != nil {
- println(errors.Wrapf(err, "error pulling image %q", name))
+ logrus.Errorf("error pulling image %q", name)
foundImage = false
continue
}