提交 d9857129 编写于 作者: J jglick

More helpful diagnostic.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17393 71c3de6d-444a-0410-be80-ed276b4c234a
上级 542ce78c
......@@ -115,7 +115,11 @@ public class Engine extends Thread {
// find out the TCP port
HttpURLConnection con = (HttpURLConnection)salURL.openConnection();
con.connect();
try {
con.connect();
} catch (IOException x) {
throw new IOException("Failed to connect to " + salURL + ": " + x.getMessage()).initCause(x);
}
port = con.getHeaderField("X-Hudson-JNLP-Port");
if(con.getResponseCode()!=200) {
if(firstError==null)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册