Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve httputil error messages (#624)
* add attempt count to the timeout error message so it's clear the timeout is due to the total time accumulated during retries. * add lastFailure to the timeout error message so we can get a clear reason for the retries (or, at the very least, the last retry). Otherwise, the error message obscures the real reason(s) for the retries and potentially misleads users into thinking that the errors could be e.g. network related (more typical of a timeout) rather than other types of errors (e.g. "tls: failed to verify certificate", etc.)
- Loading branch information