providercache: include host in provider installation error (#31524)

This commit is contained in:
Radek Simko 2022-07-29 10:50:05 +01:00 committed by GitHub
parent 038f3c762f
commit c1fc7fd744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ func installFromHTTPURL(ctx context.Context, meta getproviders.PackageMeta, targ
// so we'll return a more appropriate one here.
return nil, fmt.Errorf("provider download was interrupted")
}
return nil, err
return nil, fmt.Errorf("%s: %w", getproviders.HostFromRequest(req), err)
}
defer resp.Body.Close()