Skip to content

Commit

Permalink
feat: gin err
Browse files Browse the repository at this point in the history
  • Loading branch information
icey-yu committed Nov 21, 2024
1 parent 0beb969 commit a9860cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apiresp/gin.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func GetGinApiResponse(c *gin.Context) *ApiResponse {
}

func GinError(c *gin.Context, err error) {
_ = c.Error(err)
ginJson(c, ParseError(err))
}

Expand Down

0 comments on commit a9860cf

Please sign in to comment.