mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-02 22:55:53 +00:00
[FIX JENKINS-51082] Avoid attaching calling stacktrace as that is done by Channel already (#3417)
This commit is contained in:
1 parent
7619aeda1a
commit
0e5fc86f4f
1 file changed
-5
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user