summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-10 10:16:41 -0500
committerGitHub <noreply@github.com>2020-12-10 10:16:41 -0500
commit2bb149034bd67dd4027768863fed2fce853833ae (patch)
tree4e2a04728dbbf2108d2d71837d6a59333cb62db0 /pkg/api
parentdeb00425c2984ea42158ce6afec74474de998bfd (diff)
parent3fa61f0004b04340a697a256ff51589a4d3f7c93 (diff)
downloadpodman-2bb149034bd67dd4027768863fed2fce853833ae.tar.gz
podman-2bb149034bd67dd4027768863fed2fce853833ae.tar.bz2
podman-2bb149034bd67dd4027768863fed2fce853833ae.zip
Merge pull request #8681 from Luap99/fix-image-exists-panic
Fix panic in libpod images exists endpoint
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/handlers/libpod/images.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/libpod/images.go b/pkg/api/handlers/libpod/images.go
index 6145207ca..505c96126 100644
--- a/pkg/api/handlers/libpod/images.go
+++ b/pkg/api/handlers/libpod/images.go
@@ -51,7 +51,7 @@ func ImageExists(w http.ResponseWriter, r *http.Request) {
return
}
if !report.Value {
- utils.Error(w, "Something went wrong.", http.StatusNotFound, errors.Wrapf(nil, "failed to find image %s", name))
+ utils.Error(w, "Something went wrong.", http.StatusNotFound, errors.Errorf("failed to find image %s", name))
return
}
utils.WriteResponse(w, http.StatusNoContent, "")