summaryrefslogtreecommitdiffstats
path: root/routers/repo/http.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-05-11 01:43:55 +0800
committerGitHub <noreply@github.com>2021-05-10 13:43:55 -0400
commitd37a89ed059a8fb7707ddb17da575656c4fe6e37 (patch)
tree1a151c510a490a8f1d528a954cadaf702529f125 /routers/repo/http.go
parent75d8297045b348878697710dc952677490ac58cc (diff)
downloadgitea-d37a89ed059a8fb7707ddb17da575656c4fe6e37.tar.gz
gitea-d37a89ed059a8fb7707ddb17da575656c4fe6e37.zip
don't record error when request a non-exist user (#15819)
* don't record error when request a non-exist user * Update routers/repo/http.go Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r--routers/repo/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go
index 95a56e4a2c..e98f528f36 100644
--- a/routers/repo/http.go
+++ b/routers/repo/http.go
@@ -117,7 +117,7 @@ func httpBase(ctx *context.Context) (h *serviceHandler) {
if redirectUserID, err := models.LookupUserRedirect(username); err == nil {
context.RedirectToUser(ctx, username, redirectUserID)
} else {
- ctx.NotFound("GetUserByName", err)
+ ctx.NotFound(fmt.Sprintf("User %s does not exist", username), nil)
}
} else {
ctx.ServerError("GetUserByName", err)