aboutsummaryrefslogtreecommitdiff
path: root/routers/org/teams.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-23 14:27:34 -0400
committerUnknwon <u@gogs.io>2017-03-23 14:27:34 -0400
commitbeee6e03b15e594f396fb2fb769b58e543ef1794 (patch)
tree471a20e88e3ee8c1bfcd39d6bef2f420ed618287 /routers/org/teams.go
parent902372067cad9cfe7360473d1b985217a308a949 (diff)
error: move ErrRepoNotExist -> errors.RepoNotExist
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