updated dependencies and go
This commit is contained in:
+3
-3
@@ -1,6 +1,8 @@
|
||||
package exerr
|
||||
|
||||
import (
|
||||
"maps"
|
||||
|
||||
json "git.blackforestbytes.com/BlackForestBytes/goext/gojson"
|
||||
"git.blackforestbytes.com/BlackForestBytes/goext/langext"
|
||||
"github.com/gin-gonic/gin"
|
||||
@@ -50,9 +52,7 @@ func (ee *ExErr) toJson(depth int, applyExtendListener bool, outputMeta bool) la
|
||||
ginJson["meta"] = metaJson
|
||||
|
||||
extraJson := langext.H{}
|
||||
for extraKey, extraVal := range ee.Extra {
|
||||
extraJson[extraKey] = extraVal
|
||||
}
|
||||
maps.Copy(extraJson, ee.Extra)
|
||||
ginJson["extra"] = extraJson
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user