Commit b97d900
committed
Include latest error in AllAttemptsErrored
$ git grep AllAttemptsErrored
src/client.rs: return Err(Error::AllAttemptsErrored(errors));
src/client.rs: return Err(Error::AllAttemptsErrored(errors));
fixed here
src/raw_client.rs: Err(Error::AllAttemptsErrored(errors))
already correctly collected
src/types.rs: AllAttemptsErrored(Vec<Error>),
src/types.rs: Error::AllAttemptsErrored(errors) => {
consumers
This also reorders the warning before the error:
warn!("re-creating client failed with {}, retry: {}/{}", e, failed_attempts, $self.config.retry());
warn!("re-creating client failed after {} attempts", failed_attempts);
Closes #1861 parent 5d7be37 commit b97d900
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments