mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 07:43:18 -05:00
Still print error if user does not exist
This commit is contained in:
parent
1b59e6f910
commit
fd6be0d17e
1 changed files with 4 additions and 0 deletions
|
@ -96,6 +96,10 @@ func (issue *Issue) loadAttributes(e Engine) (err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
issue.PosterID = -1
|
issue.PosterID = -1
|
||||||
issue.Poster = NewGhostUser()
|
issue.Poster = NewGhostUser()
|
||||||
|
if !IsErrUserNotExist(err) {
|
||||||
|
return fmt.Errorf("getUserByID.(poster) [%d]: %v", issue.PosterID, err)
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue