mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-21 15:55:40 +00:00
[JENKINS-21905] Take advantage of suppressed exceptions
This commit is contained in:
1 parent
4948d60345
commit
3f3e3b80a0
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user