fix: scanner.Err() + log import

This commit is contained in:
“Naeel”
2026-08-09 10:25:12 +04:00
parent b1263a2e30
commit fe4b2f502a
+4
View File
@@ -5,6 +5,7 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"log"
"net/http" "net/http"
"net/url" "net/url"
"sort" "sort"
@@ -109,6 +110,9 @@ func downloadVersion(w http.ResponseWriter, namespace, pType, version, osType, a
break break
} }
} }
if err := scanner.Err(); err != nil {
log.Printf("Error scanning SHA256SUMS: %v", err)
}
} }
baseURL := "https://" + hostname baseURL := "https://" + hostname