Skip to content
Permalink
Browse files

[FIX JENKINS-51082] Avoid attaching calling stacktrace as that is don…

…e by Channel already (#3417)
  • Loading branch information...
olivergondza authored and oleg-nenashev committed Jun 1, 2018
1 parent 7619aed commit 0e5fc86f4f724fe4740e8680dd3454dada717155
Showing with 0 additions and 5 deletions.
  1. +0 −5 core/src/main/java/hudson/FilePath.java
@@ -1089,11 +1089,6 @@ public void copyFrom(FileItem file) throws IOException, InterruptedException {
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.

0 comments on commit 0e5fc86

Please sign in to comment.
You can’t perform that action at this time.