summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorFlare <flare@lefs.me>2016-11-05 02:47:54 +0800
committerFlare <flare@lefs.me>2016-11-05 02:47:54 +0800
commitfd6be0d17e8174a20e5c9cc49219f0612995cce3 (patch)
tree1caeef225fa6611de470bed8c99b44f85b07b2a4 /models
parent1b59e6f91011cdeccf146a20f758677143710885 (diff)
downloadgitea-fd6be0d17e8174a20e5c9cc49219f0612995cce3.tar.gz
gitea-fd6be0d17e8174a20e5c9cc49219f0612995cce3.zip
Still print error if user does not exist
Diffstat (limited to 'models')
-rw-r--r--models/issue.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/issue.go b/models/issue.go
index 3c1e27d737..569d8aa940 100644
--- a/models/issue.go
+++ b/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
}
}