From a9860cff15f17392d2e9fd627ae09bd32e638e49 Mon Sep 17 00:00:00 2001 From: icey-yu <1186114839@qq.com> Date: Thu, 21 Nov 2024 16:11:57 +0800 Subject: [PATCH] feat: gin err --- apiresp/gin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/apiresp/gin.go b/apiresp/gin.go index 8b0aa70..b7090ac 100644 --- a/apiresp/gin.go +++ b/apiresp/gin.go @@ -39,6 +39,7 @@ func GetGinApiResponse(c *gin.Context) *ApiResponse { } func GinError(c *gin.Context, err error) { + _ = c.Error(err) ginJson(c, ParseError(err)) }