mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-31 03:14:17 +09:00
Refactor error system (#33626)
This commit is contained in:
1 parent
7df09e31fa
commit
15e020eec8
75 files changed
+703
-693
No files matched your search
@@ -44,7 +44,7 @@ func UserIDAssignmentAPI() func(ctx *APIContext) {
|
||||
if user_model.IsErrUserNotExist(err) {
|
||||
ctx.APIError(http.StatusNotFound, err)
|
||||
} else {
|
||||
ctx.APIError(http.StatusInternalServerError, err)
|
||||
ctx.APIErrorInternal(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user