diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-12 08:49:22 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-12 08:49:22 +0200 |
| commit | a7bcdbf5d06eb54430fffba675b13aa6ef948ce4 (patch) | |
| tree | 7480898c11a031fdc3ed00fc61494abe9c721217 /internal | |
| parent | 05698a4ffcd246fadf2b1ac631441f3d292f22fc (diff) | |
Types Error: Do not prefix the traceback with 'Traceback for error'
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/types/error.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/types/error.go b/internal/types/error.go index c7ee67f..ad6a7e0 100644 --- a/internal/types/error.go +++ b/internal/types/error.go @@ -35,7 +35,7 @@ func (e *WrappedErrorMessage) Cause() error { } func (e *WrappedErrorMessage) Traceback() string { - returnStr := fmt.Sprintf("Traceback for error: %s", e.Message) + returnStr := e.Message causeErr := e.Err for errors.Unwrap(causeErr) != nil { causeErr = errors.Unwrap(causeErr) |
