From b3f82ac894dfaf535225cc8c2b8afa1b793fb334 Mon Sep 17 00:00:00 2001 From: Seebs Date: Mon, 27 Sep 2021 11:39:19 -0500 Subject: [PATCH] return early on error instead of writing success status also --- http/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/http/handler.go b/http/handler.go index d2eef2e5e..05e97f583 100644 --- a/http/handler.go +++ b/http/handler.go @@ -1360,6 +1360,7 @@ func (h *Handler) handlePostIngestData(w http.ResponseWriter, r *http.Request) { err = qcx.Finish() if err != nil { http.Error(w, fmt.Sprintf("ingesting: %v", err), http.StatusInternalServerError) + return } } else { qcx.Abort()