mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-02 22:07:05 +09:00
Fix #167
This commit is contained in:
@ -53,7 +53,11 @@ func Profile(ctx *middleware.Context, params martini.Params) {
|
||||
|
||||
user, err := models.GetUserByName(params["username"])
|
||||
if err != nil {
|
||||
ctx.Handle(500, "user.Profile", err)
|
||||
if err == models.ErrUserNotExist {
|
||||
ctx.Handle(404, "user.Profile", err)
|
||||
} else {
|
||||
ctx.Handle(500, "user.Profile", err)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user