fix: scanner.Err() + log import
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"sort"
|
||||
@@ -109,6 +110,9 @@ func downloadVersion(w http.ResponseWriter, namespace, pType, version, osType, a
|
||||
break
|
||||
}
|
||||
}
|
||||
if err := scanner.Err(); err != nil {
|
||||
log.Printf("Error scanning SHA256SUMS: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
baseURL := "https://" + hostname
|
||||
|
||||
Reference in New Issue
Block a user