⬆️ Upgrade to latest responsable-errors

This commit is contained in:
Dan Jones 2024-01-21 15:45:19 -06:00
commit b1e4c28dfe
4 changed files with 6 additions and 4 deletions

View file

@ -36,6 +36,6 @@ func ErrorMiddleware() gin.HandlerFunc {
}
}
c.JSON(re.GetStatus(), gin.H{"error": re.GetMsg()})
c.JSON(re.Status(), re)
}
}