summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-23 13:31:51 +0200
committerGitHub <noreply@github.com>2020-04-23 13:31:51 +0200
commite25528633d1fbcc38f072c8443f0038a9c161cad (patch)
tree00a6070dc7acea68e35ea04a5e170c3f113e462f /libpod
parentc71bbffc0f32b4539897249f0f3c1d1398d9f2b4 (diff)
parente66346c7b03bdad8c460992b54cd675d19c64c72 (diff)
downloadpodman-e25528633d1fbcc38f072c8443f0038a9c161cad.tar.gz
podman-e25528633d1fbcc38f072c8443f0038a9c161cad.tar.bz2
podman-e25528633d1fbcc38f072c8443f0038a9c161cad.zip
Merge pull request #5952 from rhatdan/v
Stop wrapping pull messages
Diffstat (limited to 'libpod')
-rw-r--r--libpod/image/pull.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/image/pull.go b/libpod/image/pull.go
index fd359d593..6b4c40ba2 100644
--- a/libpod/image/pull.go
+++ b/libpod/image/pull.go
@@ -334,11 +334,11 @@ func (ir *Runtime) doPullImage(ctx context.Context, sc *types.SystemContext, goa
// If the image passed in was fully-qualified, we will have 1 refpair. Bc the image is fq'd, we don't need to yap about registries.
if !goal.usedSearchRegistries {
if pullErrors != nil && len(pullErrors.Errors) > 0 { // this should always be true
- return nil, errors.Wrap(pullErrors.Errors[0], "unable to pull image")
+ return nil, pullErrors.Errors[0]
}
return nil, errors.Errorf("unable to pull image, or you do not have pull access")
}
- return nil, pullErrors
+ return nil, errors.Cause(pullErrors)
}
if len(images) > 0 {
ir.newImageEvent(events.Pull, images[0])