Skip to content

Commit

Permalink
RestClient: on retry timeout add root exception (#25576)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timshel authored and jasontedor committed Dec 9, 2018
1 parent 95bafb0 commit bba9bb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ private void retryIfPossible(Exception exception) {
long timeout = maxRetryTimeoutMillis - timeElapsedMillis;
if (timeout <= 0) {
IOException retryTimeoutException = new IOException(
"request retries exceeded max retry timeout [" + maxRetryTimeoutMillis + "]");
"request retries exceeded max retry timeout [" + maxRetryTimeoutMillis + "]", exception);
listener.onDefinitiveFailure(retryTimeoutException);
} else {
listener.trackFailure(exception);
Expand Down

0 comments on commit bba9bb2

Please sign in to comment.