diff --git a/internal/getproviders/registry_client.go b/internal/getproviders/registry_client.go index 0a9c5e80a..a31405ec0 100644 --- a/internal/getproviders/registry_client.go +++ b/internal/getproviders/registry_client.go @@ -478,7 +478,7 @@ func maxRetryErrorHandler(resp *http.Response, err error, numTries int) (*http.R // both response and error. var errMsg string if resp != nil { - errMsg = fmt.Sprintf(": %d", resp.StatusCode) + errMsg = fmt.Sprintf(": %s returned from %s", resp.Status, resp.Request.URL) } else if err != nil { errMsg = fmt.Sprintf(": %s", err) } diff --git a/internal/registry/client.go b/internal/registry/client.go index b47234f3c..495048486 100644 --- a/internal/registry/client.go +++ b/internal/registry/client.go @@ -295,7 +295,7 @@ func maxRetryErrorHandler(resp *http.Response, err error, numTries int) (*http.R // both response and error. var errMsg string if resp != nil { - errMsg = fmt.Sprintf(": %d", resp.StatusCode) + errMsg = fmt.Sprintf(": %s returned from %s", resp.Status, resp.Request.URL) } else if err != nil { errMsg = fmt.Sprintf(": %s", err) }