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 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 {
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user