diff --git a/exerr/constructor.go b/exerr/constructor.go index aef3d75..a94d077 100644 --- a/exerr/constructor.go +++ b/exerr/constructor.go @@ -57,8 +57,8 @@ func FromError(err error) *ExErr { Caller: "", OriginalError: nil, Meta: MetaMap{ - "panic_object": {DataType: MDTString, Value: fmt.Sprintf("%+v", verr)}, - "panic_type": {DataType: MDTString, Value: fmt.Sprintf("%T", verr)}, + "panic_object": {DataType: MDTString, Value: fmt.Sprintf("%+v", verr.RecoveredObj())}, + "panic_type": {DataType: MDTString, Value: fmt.Sprintf("%T", verr.RecoveredObj())}, "stack": {DataType: MDTString, Value: verr.Stack}, }, Extra: make(map[string]any), diff --git a/go.mod b/go.mod index fb1e6c1..9f59a89 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/google/uuid v1.5.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.17.10 // indirect + github.com/klauspost/compress v1.17.11 // indirect github.com/klauspost/cpuid/v2 v2.2.8 // indirect github.com/leodido/go-urn v1.4.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect diff --git a/go.sum b/go.sum index 6505ee5..b996de0 100644 --- a/go.sum +++ b/go.sum @@ -57,6 +57,8 @@ github.com/jung-kurt/gofpdf v1.16.2 h1:jgbatWHfRlPYiK85qgevsZTHviWXKwB1TTiKdz5Pt github.com/jung-kurt/gofpdf v1.16.2/go.mod h1:1hl7y57EsiPAkLbOwzpzqgx1A30nQCk/YmFV8S2vmK0= github.com/klauspost/compress v1.17.10 h1:oXAz+Vh0PMUvJczoi+flxpnBEPxoER1IaAnU/NMPtT0= github.com/klauspost/compress v1.17.10/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= +github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc= +github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/klauspost/cpuid/v2 v2.2.8 h1:+StwCXwm9PdpiEkPyzBXIy+M9KUb4ODm0Zarf1kS5BM= github.com/klauspost/cpuid/v2 v2.2.8/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= diff --git a/goextVersion.go b/goextVersion.go index dd32325..959e8d5 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.530" +const GoextVersion = "0.0.531" -const GoextVersionTimestamp = "2024-10-09T11:15:26+0200" +const GoextVersionTimestamp = "2024-10-13T16:10:55+0200" diff --git a/langext/panic.go b/langext/panic.go index 459dffd..5588039 100644 --- a/langext/panic.go +++ b/langext/panic.go @@ -11,7 +11,7 @@ func (p PanicWrappedErr) Error() string { return "A panic occured" } -func (p PanicWrappedErr) ReoveredObj() any { +func (p PanicWrappedErr) RecoveredObj() any { return p.panic }