Better error messages when using a Proxy to connect to the XMPP server.

This commit is contained in:
Oliver Mihatsch 2019-03-18 10:28:50 +01:00 committed by Florian Schmaus
parent 8e88cd2e31
commit 007a04c4fe
1 changed files with 2 additions and 1 deletions

View File

@ -115,7 +115,8 @@ class HTTPProxySocketConnection implements ProxySocketConnection {
int code = Integer.parseInt(m.group(1));
if (code != HttpURLConnection.HTTP_OK) {
throw new ProxyException(ProxyInfo.ProxyType.HTTP);
throw new ProxyException(ProxyInfo.ProxyType.HTTP,
"Error code in proxy response: " + code);
}
}