[FIX JENKINS-51082] Avoid attaching calling stacktrace as that is done by Channel already (#3417)

This commit is contained in:
Oliver Gondža authored and Oleg Nenashev committed 2018-06-01 20:04:22 +02:00
1 parent 7619aeda1a
commit 0e5fc86f4f
1 file changed
-5
-5
View File
@@ -1089,11 +1089,6 @@ public final class FilePath implements Serializable {
return channel.call(wrapper);
} catch (TunneledInterruptedException e) {
throw (InterruptedException)new InterruptedException(e.getMessage()).initCause(e);
} catch (AbortException e) {
throw e; // pass through so that the caller can catch it as AbortException
} catch (IOException e) {
// wrap it into a new IOException so that we get the caller's stack trace as well.
throw new IOException("remote file operation failed: " + remote + " at " + channel + ": " + e, e);
}
} else {
// the file is on the local machine.