aboutsummaryrefslogtreecommitdiff
path: root/internal/route/org/teams.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/org/teams.go')
-rw-r--r--internal/route/org/teams.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/route/org/teams.go b/internal/route/org/teams.go
index 6b0061fc..c681ec9f 100644
--- a/internal/route/org/teams.go
+++ b/internal/route/org/teams.go
@@ -172,8 +172,8 @@ func NewTeamPost(c *context.Context, f form.CreateTeam) {
switch {
case db.IsErrTeamAlreadyExist(err):
c.RenderWithErr(c.Tr("form.team_name_been_taken"), TEAM_NEW, &f)
- case db.IsErrNameReserved(err):
- c.RenderWithErr(c.Tr("org.form.team_name_reserved", err.(db.ErrNameReserved).Name), TEAM_NEW, &f)
+ case db.IsErrNameNotAllowed(err):
+ c.RenderWithErr(c.Tr("org.form.team_name_not_allowed", err.(db.ErrNameNotAllowed).Value()), TEAM_NEW, &f)
default:
c.Error(err, "new team")
}