提交 51a627ac 编写于 作者: K kohsuke

Hudson was failing to report error messages in several situations during a build.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@36057 71c3de6d-444a-0410-be80-ed276b4c234a
上级 235e1d3b
......@@ -488,7 +488,7 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
return;
}
} catch (AbortException e) {
// checkout error already reported
listener.error(e.getMessage());
} catch (IOException e) {
// checkout error not yet reported
e.printStackTrace(listener.getLogger());
......
......@@ -1232,6 +1232,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
return r;
}
} catch (AbortException e) {
listener.getLogger().println(e.getMessage());
listener.fatalError(Messages.AbstractProject_Aborted());
LOGGER.log(Level.FINE, "Polling "+this+" aborted",e);
return NO_CHANGES;
......
......@@ -1285,6 +1285,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
throw t;
} catch( AbortException e ) {// orderly abortion.
result = Result.FAILURE;
listener.error(e.getMessage());
LOGGER.log(FINE, "Build "+this+" aborted",e);
} catch( RunnerAbortedException e ) {// orderly abortion.
result = Result.FAILURE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册