fix: scanner.Err() + log import
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user