diff options
author | Unknwon <u@gogs.io> | 2016-08-12 02:29:29 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-14 23:52:24 -0700 |
commit | 15845cb28763c1542556ad61d2aa9735541dbf45 (patch) | |
tree | 94b2053202fcf5270e0697fc37c38203310571ed /models/issue.go | |
parent | d0a0239bacf02eb004634dfe1bb0a3f7dfe5adb6 (diff) | |
download | gitea-15845cb28763c1542556ad61d2aa9735541dbf45.tar.gz gitea-15845cb28763c1542556ad61d2aa9735541dbf45.zip |
Code clean up for new config options
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue.go b/models/issue.go index e0b72952eb..eb126325f0 100644 --- a/models/issue.go +++ b/models/issue.go @@ -645,12 +645,12 @@ func newIssue(e *xorm.Session, repo *Repository, issue *Issue, labelIDs []int64, if IsErrAttachmentNotExist(err) { continue } - return fmt.Errorf("getAttachmentByUUID[%s]: %v", uuid, err) + return fmt.Errorf("getAttachmentByUUID [%s]: %v", uuid, err) } attachment.IssueID = issue.ID // No assign value could be 0, so ignore AllCols(). if _, err = e.Id(attachment.ID).Update(attachment); err != nil { - return fmt.Errorf("update attachment[%d]: %v", attachment.ID, err) + return fmt.Errorf("update attachment [%d]: %v", attachment.ID, err) } } |