mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 04:12:10 +00:00
Fix #167
This commit is contained in:
parent
914ffa496f
commit
25713ab209
3 changed files with 14 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue