提交 344ba8de 编写于 作者: K Kohsuke Kawaguchi

improved error diagnostics

上级 b2730f3d
......@@ -284,6 +284,10 @@ public class CLI {
flushURLConnection(head);
if (p1==null && p2==null) {
// we aren't finding headers we are expecting. Is this even running Jenkins?
if (head.getHeaderField("X-Hudson")==null && head.getHeaderField("X-Jenkins")==null)
throw new IOException("There's no Jenkins running at "+url);
throw new IOException("No X-Jenkins-CLI2-Port among " + head.getHeaderFields().keySet());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册