mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 10:36:21 +00:00
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:
1 parent
539789f11a
commit
77c6378b1a
1 file changed
+7
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user