mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-31 05:25:25 +00:00
Changes in remoting make wrapping IOException less necessary.
Still do it so we capture FilePath.remote (which many JRE methods suppress), but fix the wrapper Throwable.message to include cause.toString() according to convention.
This commit is contained in:
1 parent
686a65edad
commit
698858fd92
1 file changed
+1
-1
@@ -943,7 +943,7 @@ public final class FilePath implements Serializable {
|
||||
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 IOException2("remote file operation failed: "+remote+" at "+channel,e);
|
||||
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