mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +09:00
Tails 6156 - Fix outdated error handling in accountcreation and remove buggy debug code
Tag #1273
This commit is contained in:
parent
0f7827bc8d
commit
13a2cf2b8a
3 changed files with 7 additions and 12 deletions
|
|
@ -75,7 +75,7 @@ Things to test (works for me):
|
||||||
former bug: goes to manual first shortly, then to result
|
former bug: goes to manual first shortly, then to result
|
||||||
**********************/
|
**********************/
|
||||||
|
|
||||||
// To debug, set mail.wizard.logging.dump (or .console)="All" and kDebug = true
|
// To debug, set mail.wizard.logging.dump (or .console)="All"
|
||||||
|
|
||||||
function e(elementID)
|
function e(elementID)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -159,17 +159,14 @@ FetchHTTP.prototype =
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
success = false;
|
success = false;
|
||||||
try
|
errorCode = this._request.status;
|
||||||
{
|
if (errorCode == 0) {
|
||||||
errorCode = this._request.status;
|
|
||||||
errorStr = this._request.statusText;
|
|
||||||
} catch (e) {
|
|
||||||
// If we can't resolve the hostname in DNS etc., .statusText throws
|
|
||||||
errorCode = -2;
|
|
||||||
errorStr = getStringBundle(
|
errorStr = getStringBundle(
|
||||||
"chrome://messenger/locale/accountCreationUtil.properties")
|
"chrome://messenger/locale/accountCreationUtil.properties")
|
||||||
.GetStringFromName("cannot_contact_server.error");
|
.GetStringFromName("cannot_contact_server.error");
|
||||||
ddump(errorStr);
|
ddump(errorStr);
|
||||||
|
} else {
|
||||||
|
errorStr = this._request.statusText;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -198,8 +198,6 @@ function MalformedException(msgID, uncheckedBadValue)
|
||||||
var stringBundle = getStringBundle(
|
var stringBundle = getStringBundle(
|
||||||
"chrome://messenger/locale/accountCreationUtil.properties");
|
"chrome://messenger/locale/accountCreationUtil.properties");
|
||||||
var msg = stringBundle.GetStringFromName(msgID);
|
var msg = stringBundle.GetStringFromName(msgID);
|
||||||
if (kDebug)
|
|
||||||
msg += " (bad value: " + new String(uncheckedBadValue) + ")";
|
|
||||||
Exception.call(this, msg);
|
Exception.call(this, msg);
|
||||||
}
|
}
|
||||||
MalformedException.prototype = Object.create(Exception.prototype);
|
MalformedException.prototype = Object.create(Exception.prototype);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue