Bug 1201591 - Demote IRC connection errors to warnings. r=clokep
This commit is contained in:
Родитель
88e8f072ae
Коммит
125618e3cd
|
@ -761,23 +761,23 @@ ircSocket.prototype = {
|
|||
this._account.gotDisconnected();
|
||||
}
|
||||
else {
|
||||
this.ERROR(msg);
|
||||
this.WARN(msg);
|
||||
this._account.gotDisconnected(Ci.prplIAccount.ERROR_NETWORK_ERROR,
|
||||
_("connection.error.lost"));
|
||||
}
|
||||
},
|
||||
onConnectionReset: function() {
|
||||
this.ERROR("Connection reset.");
|
||||
this.WARN("Connection reset.");
|
||||
this._account.gotDisconnected(Ci.prplIAccount.ERROR_NETWORK_ERROR,
|
||||
_("connection.error.lost"));
|
||||
},
|
||||
onConnectionTimedOut: function() {
|
||||
this.ERROR("Connection timed out.");
|
||||
this.WARN("Connection timed out.");
|
||||
this._account.gotDisconnected(Ci.prplIAccount.ERROR_NETWORK_ERROR,
|
||||
_("connection.error.timeOut"));
|
||||
},
|
||||
onBadCertificate: function(aIsSslError, aNSSErrorMessage) {
|
||||
this.ERROR("Bad certificate or SSL connection for " + this._account.name +
|
||||
this.WARN("Bad certificate or SSL connection for " + this._account.name +
|
||||
":\n" + aNSSErrorMessage);
|
||||
let error = this._account.handleBadCertificate(this, aIsSslError);
|
||||
this._account.gotDisconnected(error, aNSSErrorMessage);
|
||||
|
|
|
@ -161,8 +161,8 @@ var ircBase = {
|
|||
if (!this.disconnecting) {
|
||||
// We received an ERROR message when we weren't expecting it, this is
|
||||
// probably the server giving us a ping timeout.
|
||||
this.ERROR("Received unexpected ERROR response:\n" +
|
||||
aMessage.params[0]);
|
||||
this.WARN("Received unexpected ERROR response:\n" +
|
||||
aMessage.params[0]);
|
||||
this.gotDisconnected(Ci.prplIAccount.ERROR_NETWORK_ERROR,
|
||||
_("connection.error.lost"));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче