mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-15 08:41:02 +00:00
return early on error instead of writing success status also
This commit is contained in:
parent
b41f3554da
commit
b3f82ac894
1 changed files with 1 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue