summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-12 08:57:18 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-12 08:57:18 +0200
commitc2c4ca3bcf38b863714fd66a66234dc6dc60e10f (patch)
tree9155ce8dcd863c2801d15f53838b812ee3d578ff /internal
parent2d152ba32d048e1e97438d99dd24ed5a32a6b961 (diff)
Types Error Traceback: Use 'Traceback:' after the initial error message
Diffstat (limited to 'internal')
-rw-r--r--internal/types/error.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/types/error.go b/internal/types/error.go
index 8612de3..0b3feae 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 := e.Message
+ returnStr := fmt.Sprintf("%s\n%s", e.Message, "Traceback:")
causeErr := e.Err
for errors.Unwrap(causeErr) != nil {
causeErr = errors.Unwrap(causeErr)