0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 14:44:12 +01:00

Still print error if user does not exist

This commit is contained in:
Flare 2016-11-05 02:47:54 +08:00
parent 1b59e6f910
commit fd6be0d17e
No known key found for this signature in database
GPG key ID: 762EE3D369C1A772

View file

@ -96,6 +96,10 @@ func (issue *Issue) loadAttributes(e Engine) (err error) {
if err != nil {
issue.PosterID = -1
issue.Poster = NewGhostUser()
if !IsErrUserNotExist(err) {
return fmt.Errorf("getUserByID.(poster) [%d]: %v", issue.PosterID, err)
}
return
}
}