21
0
Fork 0

v0.0.440 improve exerr.toJson
Build Docker and Deploy / Run goext test-suite (push) Failing after 2m54s Details

This commit is contained in:
Mike Schwörer 2024-04-29 16:03:58 +02:00
parent fed8bccaab
commit 126d4fbd0b
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 5 additions and 5 deletions

View File

@ -15,10 +15,10 @@ func (ee *ExErr) toJson(depth int, applyExtendListener bool, outputMeta bool) la
ginJson["id"] = ee.UniqueID
}
if ee.Category != CatWrap {
ginJson["category"] = ee.Category
ginJson["category"] = ee.Category.Category
}
if ee.Type != TypeWrap {
ginJson["type"] = ee.Type
ginJson["type"] = ee.Type.Key
}
if ee.StatusCode != nil {
ginJson["statuscode"] = ee.StatusCode
@ -30,7 +30,7 @@ func (ee *ExErr) toJson(depth int, applyExtendListener bool, outputMeta bool) la
ginJson["caller"] = ee.Caller
}
if ee.Severity != SevErr {
ginJson["severity"] = ee.Severity
ginJson["severity"] = ee.Severity.Severity
}
if ee.Timestamp != (time.Time{}) {
ginJson["time"] = ee.Timestamp.Format(time.RFC3339)

View File

@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.439"
const GoextVersion = "0.0.440"
const GoextVersionTimestamp = "2024-04-25T11:47:16+0200"
const GoextVersionTimestamp = "2024-04-29T16:03:58+0200"