mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-09 04:17:51 +00:00
More specific error message on mismatch
This commit is contained in:
parent
5206e8fa0e
commit
3ca91bba7f
1 changed files with 3 additions and 0 deletions
|
|
@ -2722,6 +2722,9 @@ func (h *Handler) handlePostImport(w http.ResponseWriter, r *http.Request) {
|
|||
defer qcx.Abort()
|
||||
|
||||
if isImportRequestEmpty(req) {
|
||||
if len(req.ColumnIDs) > 0 || len(req.ColumnKeys) > 0 {
|
||||
http.Error(w, "columns provided but no values", http.StatusBadRequest)
|
||||
}
|
||||
return
|
||||
}
|
||||
if err := h.api.ImportValue(r.Context(), qcx, req, opts...); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue