summaryrefslogtreecommitdiff
path: root/i18nerr
diff options
context:
space:
mode:
Diffstat (limited to 'i18nerr')
-rw-r--r--i18nerr/i18nerr.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18nerr/i18nerr.go b/i18nerr/i18nerr.go
index 813d287..3520ecc 100644
--- a/i18nerr/i18nerr.go
+++ b/i18nerr/i18nerr.go
@@ -46,7 +46,7 @@ func (e *Error) translated(t language.Tag) string {
once.Do(func() {
inititializeLangs()
})
- msg := printerOrNew(t).Sprintf(e.key, e.args)
+ msg := printerOrNew(t).Sprintf(e.key, e.args...)
if e.wrapped != nil {
return msg + " " + printerOrNew(t).Sprintf("with cause:") + " " + e.wrapped.Error()
}