Tails 6156 - Fix outdated error handling in accountcreation and remove buggy debug code

Tag #1273
This commit is contained in:
Matt A. Tobin 2019-11-11 00:39:20 -05:00 • committed by Roy Tam
commit 13a2cf2b8a
3 changed files with 7 additions and 12 deletions

View file

@ -159,17 +159,14 @@ FetchHTTP.prototype =
else
{
success = false;
try
{
errorCode = this._request.status;
errorStr = this._request.statusText;
} catch (e) {
// If we can't resolve the hostname in DNS etc., .statusText throws
errorCode = -2;
errorCode = this._request.status;
if (errorCode == 0) {
errorStr = getStringBundle(
"chrome://messenger/locale/accountCreationUtil.properties")
.GetStringFromName("cannot_contact_server.error");
"chrome://messenger/locale/accountCreationUtil.properties")
.GetStringFromName("cannot_contact_server.error");
ddump(errorStr);
} else {
errorStr = this._request.statusText;
}
}