From 0ead99608aa287a384ed7fcb520a0c36819a7b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Mon, 24 Jul 2023 12:27:06 +0200 Subject: [PATCH] v0.0.197 --- exerr/gin.go | 7 ++++--- goextVersion.go | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/exerr/gin.go b/exerr/gin.go index 6bbe184..e77def4 100644 --- a/exerr/gin.go +++ b/exerr/gin.go @@ -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 { diff --git a/goextVersion.go b/goextVersion.go index 60be185..fc58ac9 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -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"