Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Jul 26, 2023
1 parent 9441c40 commit 7d63821
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/handler/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/pingcap/tidb/parser/terror"
)

//revive:disable
const (
DBName = "db"
HexKey = "hexKey"
Expand All @@ -49,6 +50,8 @@ const (
ContentTypeJSON = "application/json"
)

//revive:enable

func WriteError(w http.ResponseWriter, err error) {
w.WriteHeader(http.StatusBadRequest)
_, err = w.Write([]byte(err.Error()))
Expand Down

0 comments on commit 7d63821

Please sign in to comment.