mirror of
https://github.com/containers/podman.git
synced 2026-10-27 20:29:39 -04:00
Change error message for compatibility with docker
Fix #12315 Signed-off-by: Michael Scherer <misc@redhat.com>
This commit is contained in:
1 parent
f031bd23c6
commit
422dc5e693
1 file changed
+1
-1
@@ -55,7 +55,7 @@ func CreateContainer(w http.ResponseWriter, r *http.Request) {
|
||||
newImage, resolvedName, err := runtime.LibimageRuntime().LookupImage(body.Config.Image, nil)
|
||||
if err != nil {
|
||||
if errors.Cause(err) == storage.ErrImageUnknown {
|
||||
utils.Error(w, "No such image", http.StatusNotFound, err)
|
||||
utils.Error(w, "No such image", http.StatusNotFound, errors.Wrap(err, "No such image"))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user