From ea153c8e2eb2e371a7e7f5825ab65f0abd5a580d Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Thu, 20 Feb 2020 10:41:28 -0600 Subject: search endpoint failure correction when returning an invalid search, a return was omitted triggering a null on the consumer end. Fixes: #5228 Signed-off-by: Brent Baude --- pkg/api/handlers/images.go | 1 + 1 file changed, 1 insertion(+) 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) } -- cgit v1.2.3-54-g00ecf