summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2021-11-16 19:07:23 +0100
committerMatthew Heon <mheon@redhat.com>2021-12-06 15:11:08 -0500
commit2c7b673c5c22d7b1d153768891983221fc6e0312 (patch)
tree020642b05cb4836b1948e21bb1924209949ac661
parent76fd7dbd159491e920689104310c4a104744c42c (diff)
downloadpodman-2c7b673c5c22d7b1d153768891983221fc6e0312.tar.gz
podman-2c7b673c5c22d7b1d153768891983221fc6e0312.tar.bz2
podman-2c7b673c5c22d7b1d153768891983221fc6e0312.zip
Change error message for compatibility with docker
Fix #12315 Signed-off-by: Michael Scherer <misc@redhat.com>
-rw-r--r--pkg/api/handlers/compat/containers_create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/containers_create.go b/pkg/api/handlers/compat/containers_create.go
index 1e175d664..d5abb6e44 100644
--- a/pkg/api/handlers/compat/containers_create.go
+++ b/pkg/api/handlers/compat/containers_create.go
@@ -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
}