1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 03:27:59 +01:00

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

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);
}
}