summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-19 02:34:10 +0100
committerGitHub <noreply@github.com>2021-11-19 02:34:10 +0100
commit87a7800d14765b66f78ef668837062e2535a2736 (patch)
tree6f447e07b4da9e7f20993fd1a7f8526de038b90c /pkg
parentde3924169a8c0e840688103b2500c451d73c026d (diff)
parent422dc5e6931a652f0aed4013d79b6c6545df48cf (diff)
downloadpodman-87a7800d14765b66f78ef668837062e2535a2736.tar.gz
podman-87a7800d14765b66f78ef668837062e2535a2736.tar.bz2
podman-87a7800d14765b66f78ef668837062e2535a2736.zip
Merge pull request #12318 from mscherer/2nd_try
Change error message for compatibility with docker
Diffstat (limited to 'pkg')
-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
}