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)

(cherry picked from commit 0e5fc86)
  • Loading branch information
olivergondza committed Jun 7, 2018
1 parent 162ed7e commit d333057
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 @@ -1036,11 +1036,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 d333057

Please sign in to comment.