Skip to content

Commit

Permalink
[FIX JENKINS-51082] Avoid attaching calling stacktrace as that is don…
Browse files Browse the repository at this point in the history
…e by Channel already (#3417)
  • Loading branch information
olivergondza authored and oleg-nenashev committed Jun 1, 2018
1 parent 7619aed commit 0e5fc86
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/src/main/java/hudson/FilePath.java
Expand Up @@ -1089,11 +1089,6 @@ private <T> T act(final FileCallable<T> callable, ClassLoader cl) throws IOExcep
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.
Expand Down

0 comments on commit 0e5fc86

Please sign in to comment.