Add context for all exceptions
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -23,7 +23,7 @@ func JWTAuth() gin.HandlerFunc {
|
||||
SetType(exception.TypeCommon).
|
||||
SetOriginal(exception.CommonErrorUnauthorized).
|
||||
SetError(err).
|
||||
Build()
|
||||
Build(c)
|
||||
|
||||
utils.HttpAbort(c, 401, errorCode)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user