From cc1bad85fe7a26cf616a6e8a53988f759d1a24c0 Mon Sep 17 00:00:00 2001 From: baude Date: Thu, 10 May 2018 10:08:32 -0500 Subject: 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 Closes: #744 Approved by: rhatdan --- pkg/varlinkapi/images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) } -- cgit v1.2.3-54-g00ecf