aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/pull.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r--routers/repo/pull.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index aa61dcd9..51d34877 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -42,7 +42,7 @@ var (
func parseBaseRepository(ctx *context.Context) *models.Repository {
baseRepo, err := models.GetRepositoryByID(ctx.ParamsInt64(":repoid"))
if err != nil {
- ctx.NotFoundOrServerError("GetRepositoryByID", models.IsErrRepoNotExist, err)
+ ctx.NotFoundOrServerError("GetRepositoryByID", errors.IsRepoNotExist, err)
return nil
}
@@ -718,7 +718,7 @@ func parseOwnerAndRepo(ctx *context.Context) (*models.User, *models.Repository)
repo, err := models.GetRepositoryByName(owner.ID, ctx.Params(":reponame"))
if err != nil {
- ctx.NotFoundOrServerError("GetRepositoryByName", models.IsErrRepoNotExist, err)
+ ctx.NotFoundOrServerError("GetRepositoryByName", errors.IsRepoNotExist, err)
return nil, nil
}