Skip to content

Commit 7b65b17

Browse files
craig[bot]xinhaoz
andcommitted
Merge #152931
152931: server: fix error msg for malformed table id in getTableGrants r=xinhaoz a=xinhaoz Epic: none Co-authored-by: Xin Hao Zhang <[email protected]>
2 parents 6107d91 + 53d0433 commit 7b65b17

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)