mirror of
https://github.com/sundowndev/phoneinfoga.git
synced 2026-11-04 12:04:37 +00:00
12 lines
238 B
Go
12 lines
238 B
Go
package web
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/sundowndev/phoneinfoga/v2/web/errors"
|
|
)
|
|
|
|
func handleError(c *gin.Context, e *errors.Error) {
|
|
c.JSON(e.Status(), JSONResponse{Success: false, Error: e.String()})
|
|
c.Abort()
|
|
}
|