mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 10:06:13 +00:00
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:
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 {
|
||||
|
||||
Reference in new issue
Block a user