diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-05-31 13:52:26 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-05-31 13:52:26 +0200 |
| commit | 9f9c74cb55f3a0be1799669dca08546747cbf3c2 (patch) | |
| tree | 460748c2da7164fa8489ea11212347f19a5fd4c7 /i18nerr/i18nerr.go | |
| parent | 186ae1eb472cd6a18f69e0bf3877ae9f42e9a85e (diff) | |
i18nerr: update cause sprintf
Diffstat (limited to 'i18nerr/i18nerr.go')
| -rw-r--r-- | i18nerr/i18nerr.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i18nerr/i18nerr.go b/i18nerr/i18nerr.go index 2b808de..82d591a 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("The cause of the error is:") + " " + e.wrapped.Error() + return printerOrNew(t).Sprintf("%s. The cause of the error is: %s", msg, e.wrapped.Error()) } return msg } |
