From 15e020eec85d7ec2ef0f1e9ad10a1ffde2ca0f34 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 18 Feb 2025 04:41:03 +0800 Subject: Refactor error system (#33626) --- services/context/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/context/user.go') 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) } } } -- cgit v1.2.3