mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
Merge pull request #19518 from dmcgowan/unwrap-url-error-on-retry
Unwrap URL errors on retry Upstream-commit: 16faf8f1fcc936e0776b067b26b4c01ede1af1d1 Component: engine
This commit is contained in:
@@ -145,6 +145,8 @@ func retryOnError(err error) error {
|
||||
case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied:
|
||||
return xfer.DoNotRetry{Err: err}
|
||||
}
|
||||
case *url.Error:
|
||||
return retryOnError(v.Err)
|
||||
case *client.UnexpectedHTTPResponseError:
|
||||
return xfer.DoNotRetry{Err: err}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user