diff options
author | baude <bbaude@redhat.com> | 2018-05-10 10:08:32 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-05-10 16:11:27 +0000 |
commit | cc1bad85fe7a26cf616a6e8a53988f759d1a24c0 (patch) | |
tree | 0f476b4bc2a2df8a7803e3d7178c92180ef502f1 | |
parent | 0e58ec74747ac7fbb0dccd364765b83b212657c9 (diff) | |
download | podman-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
-rw-r--r-- | pkg/varlinkapi/images.go | 2 |
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()) } |