Still print error if user does not exist

tokarchuk/v1.17
Flare 8 years ago
parent 1b59e6f910
commit fd6be0d17e
No known key found for this signature in database
GPG Key ID: 762EE3D369C1A772
  1. 4
      models/issue.go

@ -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
}
}

Loading…
Cancel
Save