return early on error instead of writing success status also

This commit is contained in:
Seebs 2021-09-27 11:39:19 -05:00
parent b41f3554da
commit b3f82ac894

View file

@ -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()