We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90aae7e commit 66654d0Copy full SHA for 66654d0
services/context/user.go
@@ -71,7 +71,7 @@ func userAssignment(ctx *Base, doer *user_model.User, errCb func(int, any)) (con
71
if redirectUserID, err := user_model.LookupUserRedirect(ctx, username); err == nil {
72
RedirectToUser(ctx, username, redirectUserID)
73
} else if user_model.IsErrUserRedirectNotExist(err) {
74
- errCb(http.StatusNotFound, fmt.Errorf("LookupUserRedirect: %w", err))
+ errCb(http.StatusNotFound, err)
75
} else {
76
errCb(http.StatusInternalServerError, fmt.Errorf("LookupUserRedirect: %w", err))
77
}
0 commit comments