diff --git a/pkg/downloader/uri.go b/pkg/downloader/uri.go index 46685470ca2f..b678ae0dd090 100644 --- a/pkg/downloader/uri.go +++ b/pkg/downloader/uri.go @@ -180,7 +180,7 @@ func DownloadFile(url string, filePath, sha string, downloadStatus func(string, defer resp.Body.Close() if resp.StatusCode >= 400 { - return fmt.Errorf("failed to download file %q, invalid status code %d", filePath, resp.StatusCode) + return fmt.Errorf("failed to download url %q, invalid status code %d", url, resp.StatusCode) } // Create parent directory