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 f391fd3 commit 7a5668f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,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 7a5668f

Please sign in to comment.