Update msx.go

This commit is contained in:
nikk gitanes
2024-05-28 16:25:45 +03:00
parent 6e6170153b
commit 4279385a8f

View File

@@ -6,13 +6,14 @@ import (
"net/http" "net/http"
"os" "os"
"path/filepath" "path/filepath"
"strconv"
"strings"
"server/settings" "server/settings"
"server/torr" "server/torr"
"server/utils" "server/utils"
"server/version" "server/version"
"server/web/auth" "server/web/auth"
"strconv"
"strings"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )
@@ -37,6 +38,7 @@ func trn(h string) (st, sc string) {
} }
return return
} }
func rsp(c *gin.Context, r *http.Response, e error) { func rsp(c *gin.Context, r *http.Response, e error) {
if e != nil { if e != nil {
c.AbortWithError(http.StatusInternalServerError, e) c.AbortWithError(http.StatusInternalServerError, e)