aboutsummaryrefslogtreecommitdiff
path: root/routers/org/teams.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/org/teams.go')
-rw-r--r--routers/org/teams.go2
1 files changed, 1 insertions, 1 deletions
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