aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-05-10 10:08:32 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-05-10 16:11:27 +0000
commitcc1bad85fe7a26cf616a6e8a53988f759d1a24c0 (patch)
tree0f476b4bc2a2df8a7803e3d7178c92180ef502f1 /pkg
parent0e58ec74747ac7fbb0dccd364765b83b212657c9 (diff)
downloadpodman-cc1bad85fe7a26cf616a6e8a53988f759d1a24c0.tar.gz
podman-cc1bad85fe7a26cf616a6e8a53988f759d1a24c0.tar.bz2
podman-cc1bad85fe7a26cf616a6e8a53988f759d1a24c0.zip
Dont eat the pull error message for varlink
When using varlink to pull an image, we should expose the actual error to the caller. Signed-off-by: baude <bbaude@redhat.com> Closes: #744 Approved by: rhatdan
Diffstat (limited to 'pkg')
-rw-r--r--pkg/varlinkapi/images.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/varlinkapi/images.go b/pkg/varlinkapi/images.go
index f488a10fe..981a4d9a0 100644
--- a/pkg/varlinkapi/images.go
+++ b/pkg/varlinkapi/images.go
@@ -287,7 +287,7 @@ func (i *LibpodAPI) PullImage(call ioprojectatomicpodman.VarlinkCall, name strin
}
newImage, err := runtime.ImageRuntime().New(getContext(), name, "", "", nil, &image.DockerRegistryOptions{}, image.SigningOptions{}, true, false)
if err != nil {
- return call.ReplyErrorOccurred(fmt.Sprintf("unable to pull %s", name))
+ return call.ReplyErrorOccurred(fmt.Sprintf("unable to pull %s: %s", name, err.Error()))
}
return call.ReplyPullImage(newImage.ID())
}