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:
Jesse Glick committed 2014-10-15 16:12:10 -04:00
1 parent 686a65edad
commit 698858fd92
1 file changed
+1 -1
+1 -1
View File
@@ -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.