diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-04-23 05:31:34 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-04-23 05:31:36 -0400 |
commit | e66346c7b03bdad8c460992b54cd675d19c64c72 (patch) | |
tree | 00a6070dc7acea68e35ea04a5e170c3f113e462f /libpod/image | |
parent | c71bbffc0f32b4539897249f0f3c1d1398d9f2b4 (diff) | |
download | podman-e66346c7b03bdad8c460992b54cd675d19c64c72.tar.gz podman-e66346c7b03bdad8c460992b54cd675d19c64c72.tar.bz2 podman-e66346c7b03bdad8c460992b54cd675d19c64c72.zip |
Stop wrapping pull messages
The length and size of our error messages on failure to pull
is huge. This patch at least eliminates some of the wrapping.
But I think eventually we need to look at containers/image
and see if we can modify the error messages to something a little
more human friendly.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/image')
-rw-r--r-- | libpod/image/pull.go | 4 |
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]) |