Bug 618340: don't report network failure for unknown errors. r=philiKON

This commit is contained in:
Richard Newman 2010-12-10 16:32:16 -08:00
parent 56ed182429
commit bca15c8e10

View File

@ -764,9 +764,11 @@ WeaveSvc.prototype = {
Status.login = LOGIN_FAILED_INVALID_PASSPHRASE;
Status.sync = CREDENTIALS_CHANGED;
}
else
// Assume that every other failure is network-related.
Status.login = LOGIN_FAILED_NETWORK_ERROR;
else {
// In the absence of further disambiguation or more precise
// failure constants, just report failure.
Status.login = LOGIN_FAILED;
}
return false;
}
}