added a defensive error check.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20875 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-08-19 00:23:08 +00:00
1 parent 96ad13c444
commit c21b8be786
1 file changed
+6
@@ -107,6 +107,12 @@ public class WindowsSlaveInstaller implements Callable<Void,RuntimeException>, A
}
final File dir = new File(rootDir);
if (!dir.exists()) {
JOptionPane.showMessageDialog(dialog,"Slave root directory '"+rootDir+"' doesn't exist",
Messages.WindowsInstallerLink_DisplayName(),
JOptionPane.ERROR_MESSAGE);
return;
}
try {