diff --git a/exerr/gin.go b/exerr/gin.go index dba9a05..9c9d64d 100644 --- a/exerr/gin.go +++ b/exerr/gin.go @@ -48,6 +48,12 @@ func (ee *ExErr) toJson(depth int, applyExtendListener bool, outputMeta bool) la metaJson[metaKey] = metaVal.rawValueForJson() } ginJson["meta"] = metaJson + + extraJson := langext.H{} + for extraKey, extraVal := range ee.Extra { + extraJson[extraKey] = extraVal + } + ginJson["extra"] = extraJson } if applyExtendListener { diff --git a/goextVersion.go b/goextVersion.go index c514de5..dd32325 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.529" +const GoextVersion = "0.0.530" -const GoextVersionTimestamp = "2024-10-08T19:22:17+0200" +const GoextVersionTimestamp = "2024-10-09T11:15:26+0200"