aboutsummaryrefslogtreecommitdiffstats
path: root/modules/translation/i18n/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/translation/i18n/errors.go')
-rw-r--r--modules/translation/i18n/errors.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/translation/i18n/errors.go b/modules/translation/i18n/errors.go
index b485badd1d..a81b0bc1ac 100644
--- a/modules/translation/i18n/errors.go
+++ b/modules/translation/i18n/errors.go
@@ -4,9 +4,11 @@
package i18n
-import "errors"
+import (
+ "code.gitea.io/gitea/modules/util"
+)
var (
- ErrLocaleAlreadyExist = errors.New("lang already exists")
- ErrUncertainArguments = errors.New("arguments to i18n should not contain uncertain slices")
+ ErrLocaleAlreadyExist = util.SilentWrap{Message: "lang already exists", Err: util.ErrAlreadyExist}
+ ErrUncertainArguments = util.SilentWrap{Message: "arguments to i18n should not contain uncertain slices", Err: util.ErrInvalidArgument}
)