Skip to content

Commit cc1bad8

Browse files
bauderh-atomic-bot
authored andcommitted
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 <[email protected]> Closes: #744 Approved by: rhatdan
1 parent 0e58ec7 commit cc1bad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/varlinkapi/images.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func (i *LibpodAPI) PullImage(call ioprojectatomicpodman.VarlinkCall, name strin
287287
}
288288
newImage, err := runtime.ImageRuntime().New(getContext(), name, "", "", nil, &image.DockerRegistryOptions{}, image.SigningOptions{}, true, false)
289289
if err != nil {
290-
return call.ReplyErrorOccurred(fmt.Sprintf("unable to pull %s", name))
290+
return call.ReplyErrorOccurred(fmt.Sprintf("unable to pull %s: %s", name, err.Error()))
291291
}
292292
return call.ReplyPullImage(newImage.ID())
293293
}

0 commit comments

Comments
 (0)