提交 e74b0f76 编写于 作者: K kohsuke

if there was an error, it's better to send an error message.

If you just return, it will cause an empty page to be rendered, leaving the user clue-less.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1068 71c3de6d-444a-0410-be80-ed276b4c234a
上级 0175da49
......@@ -744,6 +744,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
// marked to be preserved, or if the build should not be deleted
// due to dependencies!
if (isKeepLog()) {
sendError(toString()+" is explicitly marked to be preserved",req,rsp);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册