On Windows this method doesn't report a good error message, so improve diagnosability by adding messages.

See http://www.nabble.com/ClearCase-plugin-0.2-not-working-with-1.160-tf4948031.html


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6221 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-12-06 02:38:57 +00:00
1 parent 539789f11a
commit 77c6378b1a
1 file changed
+7 -1
+7 -1
View File
@@ -447,7 +447,13 @@ public final class FilePath implements Serializable {
dir = null;
else
dir.mkdirs();
File f = File.createTempFile(prefix, suffix, dir);
File f;
try {
f = File.createTempFile(prefix, suffix, dir);
} catch (IOException e) {
throw new IOException2("Failed to create a temporary directory in "+dir,e);
}
Writer w = new FileWriter(f);
w.write(contents);