diff options
author | Unknwon <u@gogs.io> | 2017-03-23 14:27:34 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-23 14:27:34 -0400 |
commit | beee6e03b15e594f396fb2fb769b58e543ef1794 (patch) | |
tree | 471a20e88e3ee8c1bfcd39d6bef2f420ed618287 /routers/org/teams.go | |
parent | 902372067cad9cfe7360473d1b985217a308a949 (diff) |
error: move ErrRepoNotExist -> errors.RepoNotExist
Diffstat (limited to 'routers/org/teams.go')
-rw-r--r-- | routers/org/teams.go | 2 |
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 |