aboutsummaryrefslogtreecommitdiffstats
path: root/services/context/user.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2025-02-18 04:41:03 +0800
committerGitHub <noreply@github.com>2025-02-17 12:41:03 -0800
commit15e020eec85d7ec2ef0f1e9ad10a1ffde2ca0f34 (patch)
tree57625d44a60e5c01bcbf712695fa576aa79683f4 /services/context/user.go
parent7df09e31fa2700454beecbaf3c0721e13d6086f4 (diff)
downloadgitea-15e020eec85d7ec2ef0f1e9ad10a1ffde2ca0f34.tar.gz
gitea-15e020eec85d7ec2ef0f1e9ad10a1ffde2ca0f34.zip
Refactor error system (#33626)
Diffstat (limited to 'services/context/user.go')
-rw-r--r--services/context/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/context/user.go b/services/context/user.go
index 4037354955..c09ded8339 100644
--- a/services/context/user.go
+++ b/services/context/user.go
@@ -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)
}
}
}