add failed status

This commit is contained in:
celogeek 2022-02-05 22:11:17 +01:00
parent 2ef33024f7
commit 185845e8e3
Signed by: celogeek
GPG Key ID: E6B7BDCFC446233A

View File

@ -26,6 +26,7 @@ var (
func (s *Service) Error(c *gin.Context, code int, err error) { func (s *Service) Error(c *gin.Context, code int, err error) {
c.AbortWithStatusJSON(code, gin.H{ c.AbortWithStatusJSON(code, gin.H{
"error": err.Error(), "status": "failed",
"error": err.Error(),
}) })
} }