(c *gin.Context, err error)
| 89 | } |
| 90 | |
| 91 | func ApiError(c *gin.Context, err error) { |
| 92 | c.JSON(http.StatusOK, gin.H{ |
| 93 | "success": false, |
| 94 | "message": err.Error(), |
| 95 | }) |
| 96 | } |
| 97 | |
| 98 | func ApiErrorMsg(c *gin.Context, msg string) { |
| 99 | c.JSON(http.StatusOK, gin.H{ |
no test coverage detected