提交 2145a511 编写于 作者: K kohsuke

return a sensible error message.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2800 71c3de6d-444a-0410-be80-ed276b4c234a
上级 a1185939
......@@ -221,6 +221,10 @@ public class Maven extends Builder {
new FormFieldValidator(req,rsp,true) {
public void check() throws IOException, ServletException {
File f = getFileParameter("value");
if(f.getPath().equals("")) {
error("MAVEN_HOME is required");
return;
}
if(!f.isDirectory()) {
error(f+" is not a directory");
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册