From 0ddfaf666b42ce27c29155c2efeaaed44b861c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 26 Oct 2024 23:38:13 +0200 Subject: [PATCH] v0.0.537 fix goext error print always showing error-type of highest-level error --- exerr/exerr.go | 4 ++-- goextVersion.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exerr/exerr.go b/exerr/exerr.go index 2269cab..f4de284 100644 --- a/exerr/exerr.go +++ b/exerr/exerr.go @@ -160,8 +160,8 @@ func (ee *ExErr) FormatLog(lvl LogPrintLevel) string { for curr := ee; curr != nil; curr = curr.OriginalError { indent += " " - etype := ee.Type.Key - if ee.Type == TypeWrap { + etype := curr.Type.Key + if curr.Type == TypeWrap { etype = "~" } diff --git a/goextVersion.go b/goextVersion.go index 30aaf75..b1a6726 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.536" +const GoextVersion = "0.0.537" -const GoextVersionTimestamp = "2024-10-22T09:57:06+0200" +const GoextVersionTimestamp = "2024-10-26T23:38:13+0200"