summaryrefslogtreecommitdiff
path: root/src/cracha.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cracha.go')
-rw-r--r--src/cracha.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cracha.go b/src/cracha.go
index ae0a866..5ab61f4 100644
--- a/src/cracha.go
+++ b/src/cracha.go
@@ -16,6 +16,7 @@ import (
"uuid"
"scrypt"
g "gobang"
+ gt "gotext"
)
@@ -36,7 +37,7 @@ var (
SessionDuration = 7 * day
RegisterTimeout = 15 * time.Second
- ErrPassMismatch = errors.New("cracha: password confirmation mismatch")
+ ErrPassMismatch = gt.Error(gt.Gettext("cracha: password confirmation mismatch"))
ErrTooShort = errors.New("cracha: password too short")
ErrTimeout = errors.New("cracha: timeout when creating user")
ErrRegistered = errors.New("cracha: user already registered")