diff options
Diffstat (limited to 'routers/user/profile.go')
-rw-r--r-- | routers/user/profile.go | 2 |
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) } |