feat 修改ErrHandle

This commit is contained in:
timerzz 2024-09-10 14:04:55 +08:00
parent 4cc42e1d34
commit e076087394

View File

@ -58,7 +58,7 @@ func ErrHandle(ctx fiber.Ctx, err error) error {
} }
// Send custom error page // Send custom error page
err = ctx.Status(code).JSON(Response{ err = ctx.JSON(Response{
Code: code, Code: code,
Msg: err.Error(), Msg: err.Error(),
}) })