mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-02-03 00:41:10 +08:00
fix default error handle
This commit is contained in:
parent
57e92874d1
commit
0076c7538c
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ func defaultErrorHandle(c *Context, code int, err error) { // 检查客户端是
|
|||
c.JSON(code, H{
|
||||
"code": code,
|
||||
"message": http.StatusText(code),
|
||||
"error": err,
|
||||
"error": err.Error(),
|
||||
})
|
||||
c.Writer.Flush()
|
||||
c.Abort()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue