diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/remote/RetryException.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/remote/RetryException.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/RetryException.java b/src/main/java/com/google/devtools/build/lib/remote/RetryException.java index 24ddd365bd..49fa6abf3a 100644 --- a/src/main/java/com/google/devtools/build/lib/remote/RetryException.java +++ b/src/main/java/com/google/devtools/build/lib/remote/RetryException.java @@ -24,7 +24,7 @@ public final class RetryException extends IOException { private final int attempts; RetryException(Throwable cause, int retryAttempts) { - super(cause); + super(String.format("after %d attempts: %s", retryAttempts + 1, cause), cause); this.attempts = retryAttempts + 1; } @@ -40,9 +40,4 @@ public final class RetryException extends IOException { } return false; } - - @Override - public String toString() { - return String.format("after %d attempts: %s", attempts, getCause()); - } } |