summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2018-04-24 17:21:42 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-04-25 18:34:55 +0000
commit379404d30655c546d606f490514094fa7ca81cca (patch)
treeef086ea8fa698cb0cbcbec00105fb52456101cfe
parent22011b428c16a8f80b8bfc3292467e34fb2d305a (diff)
downloadpodman-379404d30655c546d606f490514094fa7ca81cca.tar.gz
podman-379404d30655c546d606f490514094fa7ca81cca.tar.bz2
podman-379404d30655c546d606f490514094fa7ca81cca.zip
Do not eat error messages from pullImage
Signed-off-by: Matthew Heon <mheon@redhat.com> Closes: #668 Approved by: rhatdan
-rw-r--r--libpod/image/image.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index 53d69ebe9..c9f03ebef 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -140,7 +140,7 @@ func (ir *Runtime) New(ctx context.Context, name, signaturePolicyPath, authfile
}
imageName, err := newImage.pullImage(ctx, writer, authfile, signaturePolicyPath, signingoptions, dockeroptions, forceSecure)
if err != nil {
- return nil, errors.Errorf("unable to pull %s", name)
+ return nil, errors.Wrapf(err, "unable to pull %s", name)
}
newImage.InputName = imageName