You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nginx-ui/server/api/api.go

15 lines
216 B
Go

package api
import (
"github.com/gin-gonic/gin"
"log"
"net/http"
)
func ErrorHandler(c *gin.Context, err error) {
log.Println(err)
c.JSON(http.StatusInternalServerError, gin.H{
"message": err.Error(),
})
}