提交 daccd83b 编写于 作者: K kohsuke

no stack trace with AbortException

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18188 71c3de6d-444a-0410-be80-ed276b4c234a
上级 da4474c5
......@@ -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()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册