⬆️ Upgrade to latest responsable-errors
This commit is contained in:
parent
4c635ffbe8
commit
b1e4c28dfe
4 changed files with 6 additions and 4 deletions
|
|
@ -36,6 +36,6 @@ func ErrorMiddleware() gin.HandlerFunc {
|
|||
}
|
||||
}
|
||||
|
||||
c.JSON(re.GetStatus(), gin.H{"error": re.GetMsg()})
|
||||
c.JSON(re.Status(), re)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue