mirror of
https://github.com/containers/podman.git
synced 2025-06-17 06:57:43 +08:00
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
This commit is contained in:
@ -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)
|
newImage, err := runtime.ImageRuntime().New(getContext(), name, "", "", nil, &image.DockerRegistryOptions{}, image.SigningOptions{}, true, false)
|
||||||
if err != nil {
|
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())
|
return call.ReplyPullImage(newImage.ID())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user