From 84865499aa10aa42c8b9ac06325a05dd8354f458 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 28 May 2025 19:50:52 -0300 Subject: Update to latest project skeleton: i18n and fine-grained fuzzing --- src/cracha.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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") -- cgit v1.2.3