Commit 22d3367
authored
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.)1 parent d20eff9 commit 22d3367
2 files changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
223 | 226 | | |
224 | | - | |
225 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
226 | 230 | | |
227 | 231 | | |
228 | 232 | | |
| |||
0 commit comments