1package web 2 3import ( 4 "github.com/gin-gonic/gin" 5 "github.com/sundowndev/phoneinfoga/v2/web/errors" 6) 7 8func handleError(c *gin.Context, e *errors.Error) { 9 c.JSON(e.Status(), JSONResponse{Success: false, Error: e.String()}) 10 c.Abort() 11} 12 13