mirror of
https://github.com/go-gitea/gitea
synced 2025-09-10 18:58:27 +00:00
Refactor error system (#33626)
This commit is contained in:
@@ -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