1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +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);
}
}