forked from forgejo/forgejo
#2966 code cleanup
This commit is contained in:
parent
8dca9f95fa
commit
6b98d58906
11 changed files with 145 additions and 134 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
// .____ ___. .__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue