From beee6e03b15e594f396fb2fb769b58e543ef1794 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 23 Mar 2017 14:27:34 -0400 Subject: error: move ErrRepoNotExist -> errors.RepoNotExist --- routers/repo/pull.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routers/repo/pull.go') 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 } -- cgit v1.2.3