Skip to content

Commit 53d0433

Browse files
committed
server: fix error msg for malformed table id in getTableGrants
Epic: none
1 parent 3ca17dc commit 53d0433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/server/api_v2_grants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ func (a *apiV2Server) getTableGrants(w http.ResponseWriter, r *http.Request) {
300300
pathVars := mux.Vars(r)
301301
tableId, err := strconv.Atoi(pathVars[tableIdPathVar])
302302
if err != nil {
303-
http.Error(w, "invalid database id", http.StatusBadRequest)
303+
http.Error(w, "invalid table id", http.StatusBadRequest)
304304
return
305305
}
306306
queryValues := r.URL.Query()

0 commit comments

Comments
 (0)