This commit is contained in:
Mike Schwörer 2023-07-24 12:27:06 +02:00
parent 7fe3e66cad
commit 0ead99608a
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 6 additions and 5 deletions

View File

@ -52,6 +52,7 @@ func (ee *ExErr) Output(g *gin.Context) {
var baseCat = ee.RecursiveCategory()
var baseType = ee.RecursiveType()
var baseStatuscode = ee.RecursiveStatuscode()
var baseMessage = ee.RecursiveMessage()
if baseCat == CatUser {
statuscode = http.StatusBadRequest
@ -69,9 +70,9 @@ func (ee *ExErr) Output(g *gin.Context) {
ginOutput := gin.H{
"errorid": ee.UniqueID,
"message": ee.RecursiveMessage(),
"errorcode": ee.RecursiveType(),
"category": ee.RecursiveCategory(),
"message": baseMessage,
"errorcode": baseType.Key,
"category": baseCat.Category,
}
if pkgconfig.ExtendedGinOutput {

View File

@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.196"
const GoextVersion = "0.0.197"
const GoextVersionTimestamp = "2023-07-24T11:47:47+0200"
const GoextVersionTimestamp = "2023-07-24T12:27:06+0200"