feat 修改ErrHandle
This commit is contained in:
parent
4cc42e1d34
commit
e076087394
@ -58,7 +58,7 @@ func ErrHandle(ctx fiber.Ctx, err error) error {
|
||||
}
|
||||
|
||||
// Send custom error page
|
||||
err = ctx.Status(code).JSON(Response{
|
||||
err = ctx.JSON(Response{
|
||||
Code: code,
|
||||
Msg: err.Error(),
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user