diff options
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 3e807f2..168cf84 100644 --- a/i18nerr/i18nerr.go +++ b/i18nerr/i18nerr.go @@ -150,7 +150,7 @@ func NewInternalf(disp string, args ...interface{}) *Error { // WrapInternal wraps an error and a display string into a localised internal error func WrapInternal(err error, disp string) *Error { - return NewInternal(fmt.Sprintf("%s with internal cause: %v", disp, err)) + return Wrap(fmt.Errorf("%s with internal cause: %w", disp, err), "An internal error occurred") } // WrapInternalf wraps an error and a display string with args into a localised internal error |
