v0.0.197
This commit is contained in:
parent
7fe3e66cad
commit
0ead99608a
@ -52,6 +52,7 @@ func (ee *ExErr) Output(g *gin.Context) {
|
|||||||
var baseCat = ee.RecursiveCategory()
|
var baseCat = ee.RecursiveCategory()
|
||||||
var baseType = ee.RecursiveType()
|
var baseType = ee.RecursiveType()
|
||||||
var baseStatuscode = ee.RecursiveStatuscode()
|
var baseStatuscode = ee.RecursiveStatuscode()
|
||||||
|
var baseMessage = ee.RecursiveMessage()
|
||||||
|
|
||||||
if baseCat == CatUser {
|
if baseCat == CatUser {
|
||||||
statuscode = http.StatusBadRequest
|
statuscode = http.StatusBadRequest
|
||||||
@ -69,9 +70,9 @@ func (ee *ExErr) Output(g *gin.Context) {
|
|||||||
|
|
||||||
ginOutput := gin.H{
|
ginOutput := gin.H{
|
||||||
"errorid": ee.UniqueID,
|
"errorid": ee.UniqueID,
|
||||||
"message": ee.RecursiveMessage(),
|
"message": baseMessage,
|
||||||
"errorcode": ee.RecursiveType(),
|
"errorcode": baseType.Key,
|
||||||
"category": ee.RecursiveCategory(),
|
"category": baseCat.Category,
|
||||||
}
|
}
|
||||||
|
|
||||||
if pkgconfig.ExtendedGinOutput {
|
if pkgconfig.ExtendedGinOutput {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package goext
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user