diff --git a/api/handlers.go b/api/handlers.go index 0adcd8ed62..f717ddf480 100644 --- a/api/handlers.go +++ b/api/handlers.go @@ -894,6 +894,7 @@ func proxyContainerAndForceRefresh(c *context, w http.ResponseWriter, r *http.Re if err != nil { if container == nil { httpError(w, err.Error(), http.StatusNotFound) + return } httpError(w, err.Error(), http.StatusInternalServerError) return