summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-01-31 13:33:36 -0500
committerUnknwon <u@gogs.io>2016-01-31 13:33:36 -0500
commita9d68a6884aa3935f2d00071df1f6b7accdc7f6d (patch)
tree6956d15b524d5588f1c0674e22c85c175004abac /routers/user
parent1c1246fcb9c5537bebeb2335b38c0fd2278a8426 (diff)
downloadgitea-a9d68a6884aa3935f2d00071df1f6b7accdc7f6d.tar.gz
gitea-a9d68a6884aa3935f2d00071df1f6b7accdc7f6d.zip
fix #2529
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/profile.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go
index 1452b29733..0a876610ed 100644
--- a/routers/user/profile.go
+++ b/routers/user/profile.go
@@ -25,7 +25,7 @@ func GetUserByName(ctx *middleware.Context, name string) *models.User {
user, err := models.GetUserByName(name)
if err != nil {
if models.IsErrUserNotExist(err) {
- ctx.Error(404)
+ ctx.Handle(404, "GetUserByName", nil)
} else {
ctx.Handle(500, "GetUserByName", err)
}