summaryrefslogtreecommitdiff
path: root/i18nerr/i18nerr.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-05-31 12:05:25 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-05-31 12:24:10 +0200
commitfb7217977f3b0df6ef9ff6ff7f0a157b4f5bb7ef (patch)
tree6e0e688747c16308ae6dd777fc90291d31127551 /i18nerr/i18nerr.go
parentc1a6d03bb4c5f739c388e4b57836e8ebac27a204 (diff)
i18nerr: Change with cause error message
Diffstat (limited to 'i18nerr/i18nerr.go')
-rw-r--r--i18nerr/i18nerr.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18nerr/i18nerr.go b/i18nerr/i18nerr.go
index 553a7d5..f5d96aa 100644
--- a/i18nerr/i18nerr.go
+++ b/i18nerr/i18nerr.go
@@ -52,7 +52,7 @@ func (e *Error) translated(t language.Tag) string {
})
msg := printerOrNew(t).Sprintf(e.key, e.args...)
if e.wrapped != nil {
- return msg + " " + printerOrNew(t).Sprintf("with cause:") + " " + e.wrapped.Error()
+ return msg + ". " + printerOrNew(t).Sprintf("The cause of the error is:") + " " + e.wrapped.Error()
}
return msg
}