Skip to content

Commit

Permalink
Merge pull request #147 from icey-yu/fix-panic
Browse files Browse the repository at this point in the history
fix: GenPanicErr
  • Loading branch information
icey-yu authored Nov 12, 2024
2 parents 7da3fe0 + 82bcdcb commit 24f8e88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mw/gin.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,5 @@ func CreateToken(userID string, accessSecret string, accessExpire int64, platfor

func GinPanicErr(c *gin.Context, err any) {
PanicStackToLog(c, err)
c.AbortWithStatus(http.StatusInternalServerError)
}

0 comments on commit 24f8e88

Please sign in to comment.