diff options
author | Unknwon <u@gogs.io> | 2016-08-26 13:40:53 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-26 13:40:53 -0700 |
commit | 6b98d58906e4df063a2af59f97bd74c1c4cc1c84 (patch) | |
tree | 55ee0ed0cf2ce7984f3e724ba6a8675ece4771c1 /models/error.go | |
parent | 8dca9f95fab909c52cd34fb401f171d22f0065ae (diff) | |
download | gitea-6b98d58906e4df063a2af59f97bd74c1c4cc1c84.tar.gz gitea-6b98d58906e4df063a2af59f97bd74c1c4cc1c84.zip |
#2966 code cleanup
Diffstat (limited to 'models/error.go')
-rw-r--r-- | models/error.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/models/error.go b/models/error.go index 89c6389b0d..240e606776 100644 --- a/models/error.go +++ b/models/error.go @@ -526,7 +526,8 @@ func (err ErrPullRequestNotExist) Error() string { // \/ \/ \/ \/ \/ type ErrCommentNotExist struct { - ID int64 + ID int64 + IssueID int64 } func IsErrCommentNotExist(err error) bool { @@ -535,7 +536,7 @@ func IsErrCommentNotExist(err error) bool { } func (err ErrCommentNotExist) Error() string { - return fmt.Sprintf("comment does not exist [id: %d]", err.ID) + return fmt.Sprintf("comment does not exist [id: %d, issue_id: %d]", err.ID, err.IssueID) } // .____ ___. .__ |