improved error message

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24899 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-12-24 02:43:02 +00:00
1 parent 912e6ba8fe
commit 47e06ffccb
1 file changed
+1 -1
+1 -1
View File
@@ -669,7 +669,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",e);
throw new IOException2("remote file operation failed: "+remote+" at "+channel,e);
}
} else {
// the file is on the local machine.