mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 08:21:07 -06:00
internal/registry: Add URL to error message for clarity (#29298)
This commit is contained in:
parent
7a95bbf019
commit
2496bc2b1e
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user