summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-21 15:30:00 -0500
committerGitHub <noreply@github.com>2020-02-21 15:30:00 -0500
commitf51cf8546d17c68f5ade1b4c8558d120c583316e (patch)
tree79d4dbbf847c1a1648189ddb54edec867626ab8e /pkg
parented6264c28e35cac1e14ac51be81f4297b7c77380 (diff)
parentea153c8e2eb2e371a7e7f5825ab65f0abd5a580d (diff)
downloadpodman-f51cf8546d17c68f5ade1b4c8558d120c583316e.tar.gz
podman-f51cf8546d17c68f5ade1b4c8558d120c583316e.tar.bz2
podman-f51cf8546d17c68f5ade1b4c8558d120c583316e.zip
Merge pull request #5280 from baude/addreturn
search endpoint failure correction
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/handlers/images.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/handlers/images.go b/pkg/api/handlers/images.go
index e4e394d68..96bcbdc96 100644
--- a/pkg/api/handlers/images.go
+++ b/pkg/api/handlers/images.go
@@ -156,6 +156,7 @@ func SearchImages(w http.ResponseWriter, r *http.Request) {
results, err := image.SearchImages(query.Term, options)
if err != nil {
utils.BadRequest(w, "term", query.Term, err)
+ return
}
utils.WriteResponse(w, http.StatusOK, results)
}