mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
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:
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()));
|
||||
|
||||
Reference in new issue
Block a user