diff options
author | Unknwon <u@gogs.io> | 2015-10-22 14:47:24 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-10-22 14:47:32 -0400 |
commit | 04af4b24fd87bb2ee8a2a3cecd66c5c1b1e413dd (patch) | |
tree | 5f40472782ead776d42b4975d3dab0f762911d70 /models/error.go | |
parent | a301c7ed26d401f9a01b52cac5c0d53f33a1121b (diff) | |
download | gitea-04af4b24fd87bb2ee8a2a3cecd66c5c1b1e413dd.tar.gz gitea-04af4b24fd87bb2ee8a2a3cecd66c5c1b1e413dd.zip |
work on #1818
Diffstat (limited to 'models/error.go')
-rw-r--r-- | models/error.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/error.go b/models/error.go index 1986c59026..f697325825 100644 --- a/models/error.go +++ b/models/error.go @@ -310,7 +310,7 @@ func (err ErrIssueNotExist) Error() string { type ErrPullRequestNotExist struct { ID int64 - PullID int64 + IssueID int64 HeadRepoID int64 BaseRepoID int64 HeadBarcnh string @@ -323,8 +323,8 @@ func IsErrPullRequestNotExist(err error) bool { } func (err ErrPullRequestNotExist) Error() string { - return fmt.Sprintf("pull request does not exist [id: %d, pull_id: %d, head_repo_id: %d, base_repo_id: %d, head_branch: %s, base_branch: %s]", - err.ID, err.PullID, err.HeadRepoID, err.BaseRepoID, err.HeadBarcnh, err.BaseBranch) + return fmt.Sprintf("pull request does not exist [id: %d, issue_id: %d, head_repo_id: %d, base_repo_id: %d, head_branch: %s, base_branch: %s]", + err.ID, err.IssueID, err.HeadRepoID, err.BaseRepoID, err.HeadBarcnh, err.BaseBranch) } // _________ __ |