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/org/teams.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/org/teams.go') diff --git a/routers/org/teams.go b/routers/org/teams.go index 503739de..abd2fd9e 100644 --- a/routers/org/teams.go +++ b/routers/org/teams.go @@ -121,7 +121,7 @@ func TeamsRepoAction(ctx *context.Context) { var repo *models.Repository repo, err = models.GetRepositoryByName(ctx.Org.Organization.ID, repoName) if err != nil { - if models.IsErrRepoNotExist(err) { + if errors.IsRepoNotExist(err) { ctx.Flash.Error(ctx.Tr("org.teams.add_nonexistent_repo")) ctx.Redirect(ctx.Org.OrgLink + "/teams/" + ctx.Org.Team.LowerName + "/repositories") return -- cgit v1.2.3