summaryrefslogtreecommitdiff
path: root/libpod/image
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2018-03-27 10:07:06 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-27 14:46:17 +0000
commit26d7e3c7b85e28c4e42998c90fdcc14079f13eef (patch)
treeb5f29ad6e00b832bb13b072e11db6ba5187601c8 /libpod/image
parent304bf53c28301a8dfd126f2304e02df5472e56b1 (diff)
downloadpodman-26d7e3c7b85e28c4e42998c90fdcc14079f13eef.tar.gz
podman-26d7e3c7b85e28c4e42998c90fdcc14079f13eef.tar.bz2
podman-26d7e3c7b85e28c4e42998c90fdcc14079f13eef.zip
Fix some minor issues lint has been picking up
Signed-off-by: Matthew Heon <mheon@redhat.com> Closes: #556 Approved by: baude
Diffstat (limited to 'libpod/image')
-rw-r--r--libpod/image/image.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index 22268ac45..5413c4e6b 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -143,6 +143,9 @@ func (ir *Runtime) New(name, signaturePolicyPath, authfile string, writer io.Wri
newImage.InputName = imageName
img, err := newImage.getLocalImage()
+ if err != nil {
+ return nil, errors.Wrapf(err, "error retrieving local image after pulling %s", name)
+ }
newImage.image = img
return &newImage, nil
}