This commit is contained in:
wjqserver 2025-04-03 16:39:56 +08:00
parent b02aaeba8a
commit ff412f94ec
14 changed files with 386 additions and 104 deletions

View file

@ -1,7 +1,6 @@
package proxy
import (
"fmt"
"net/http"
"github.com/WJQSERVER-STUDIO/go-utils/logger"
@ -19,6 +18,6 @@ var (
)
func HandleError(c *app.RequestContext, message string) {
c.String(http.StatusInternalServerError, fmt.Sprintf("server error %v", message))
c.JSON(http.StatusInternalServerError, map[string]string{"error": message})
logError(message)
}