Skip to content

Commit

Permalink
Merge pull request #12318 from mscherer/2nd_try
Browse files Browse the repository at this point in the history
Change error message for compatibility with docker
  • Loading branch information
openshift-merge-robot authored Nov 19, 2021
2 parents de39241 + 422dc5e commit 87a7800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/handlers/compat/containers_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 87a7800

Please sign in to comment.