From e0760873948d3290a8668d5a9e4ad64667843e8b Mon Sep 17 00:00:00 2001 From: timerzz Date: Tue, 10 Sep 2024 14:04:55 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E4=BF=AE=E6=94=B9ErrHandle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/web/response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/web/response.go b/pkg/web/response.go index 84865ef..cc8764d 100644 --- a/pkg/web/response.go +++ b/pkg/web/response.go @@ -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(), })