Bug 360192 - Support Proxy error codes better than "status 215398###"

r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only.
This commit is contained in:
gijskruitbosch%gmail.com 2006-11-11 23:17:46 +00:00
parent a30875d143
commit a285a693d2
3 changed files with 14 additions and 0 deletions

View File

@ -44,6 +44,8 @@ const NS_ERROR_UNKNOWN_HOST = NS_ERROR_MODULE_NETWORK + 30;
const NS_ERROR_CONNECTION_REFUSED = NS_ERROR_MODULE_NETWORK + 13;
const NS_ERROR_NET_TIMEOUT = NS_ERROR_MODULE_NETWORK + 14;
const NS_ERROR_NET_RESET = NS_ERROR_MODULE_NETWORK + 20;
const NS_ERROR_UNKNOWN_PROXY_HOST = NS_ERROR_MODULE_NETWORK + 42;
const NS_ERROR_PROXY_CONNECTION_REFUSED = NS_ERROR_MODULE_NETWORK + 72;
const NS_NET_STATUS_RESOLVING_HOST = NS_ERROR_MODULE_NETWORK + 3;
const NS_NET_STATUS_CONNECTED_TO = NS_ERROR_MODULE_NETWORK + 4;

View File

@ -1883,6 +1883,15 @@ function my_netdisconnect (e)
e.server.getURL()]);
break;
case NS_ERROR_UNKNOWN_PROXY_HOST:
msg = getMsg(MSG_UNKNOWN_PROXY_HOST,
[this.getURL(), e.server.getURL()]);
break;
case NS_ERROR_PROXY_CONNECTION_REFUSED:
msg = MSG_PROXY_CONNECTION_REFUSED;
break;
default:
msg = getMsg(MSG_CLOSE_STATUS,
[this.getURL(), e.server.getURL(),

View File

@ -1169,6 +1169,9 @@ msg.connection.reset = Connection to %S (%S) reset.
msg.connection.quit = Disconnected from %S (%S).
msg.close.status = Connection to %S (%S) closed with status %S.
msg.proxy.connection.refused = The proxy server you configured is refusing the connection.
msg.unknown.proxy.host = Unknown proxy host connecting to %S (%S).
# In these messages, %1$S is a connection error from above.
msg.connection.exhausted = "%1$S Connection attempts exhausted, giving up.
msg.reconnecting.in = "%1$S Reconnecting in %2$S.