error: move ErrRepoNotExist -> errors.RepoNotExist

This commit is contained in:
Unknwon
2017-03-23 14:27:34 -04:00
parent 902372067c
commit beee6e03b1
13 changed files with 35 additions and 32 deletions

View File

@@ -88,7 +88,7 @@ func (pr *PullRequest) AfterSet(colName string, _ xorm.Cell) {
func (pr *PullRequest) loadAttributes(e Engine) (err error) {
if pr.HeadRepo == nil {
pr.HeadRepo, err = getRepositoryByID(e, pr.HeadRepoID)
if err != nil && !IsErrRepoNotExist(err) {
if err != nil && !errors.IsRepoNotExist(err) {
return fmt.Errorf("getRepositoryByID.(HeadRepo) [%d]: %v", pr.HeadRepoID, err)
}
}