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)) }