[JENKINS-21905] Take advantage of suppressed exceptions

This commit is contained in:
Oliver Gondža committed 2017-09-24 16:04:50 +02:00
1 parent 4948d60345
commit 3f3e3b80a0
1 file changed
+2 -1
+2 -1
View File
@@ -2226,7 +2226,8 @@ public final class FilePath implements Serializable {
throw e; // the remote side completed successfully, so the error must be local
} catch (ExecutionException x) {
// report both errors
throw new IOException(Functions.printThrowable(e),x);
e.addSuppressed(x);
throw e;
} catch (TimeoutException _) {
// remote is hanging
throw e;