no stack trace with AbortException

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18188 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-05-18 18:55:37 +00:00
1 parent da4474c519
commit daccd83bca
1 file changed
+4
@@ -34,6 +34,7 @@ import hudson.util.Futures;
import hudson.FilePath;
import hudson.lifecycle.WindowsSlaveInstaller;
import hudson.Util;
import hudson.AbortException;
import java.io.File;
import java.io.OutputStream;
@@ -168,6 +169,9 @@ public class SlaveComputer extends Computer {
try {
launcher.launch(SlaveComputer.this, listener);
return null;
} catch (AbortException e) {
listener.error(e.getMessage());
throw e;
} catch (IOException e) {
Util.displayIOException(e,listener);
e.printStackTrace(listener.error(Messages.ComputerLauncher_unexpectedError()));