Skip to content

Commit 130afa2

Browse files
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 Closes #186
1 parent 5d7be37 commit 130afa2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ macro_rules! impl_inner_call {
5757

5858
if retries_exhausted(failed_attempts, $self.config.retry()) {
5959
warn!("call '{}' failed after {} attempts", stringify!($name), failed_attempts);
60+
errors.push(e);
6061
return Err(Error::AllAttemptsErrored(errors));
6162
}
6263

@@ -81,6 +82,7 @@ macro_rules! impl_inner_call {
8182

8283
if retries_exhausted(failed_attempts, $self.config.retry()) {
8384
warn!("re-creating client failed after {} attempts", failed_attempts);
85+
errors.push(e);
8486
return Err(Error::AllAttemptsErrored(errors));
8587
}
8688

0 commit comments

Comments
 (0)