Skip to content

Commit

Permalink
Merge pull request #154 from icey-yu/fix-err
Browse files Browse the repository at this point in the history
feat: gin err
  • Loading branch information
icey-yu authored Nov 21, 2024
2 parents 0beb969 + a9860cf commit 8ee7436
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 8ee7436

Please sign in to comment.