mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 618340: don't report network failure for unknown errors. r=philiKON
This commit is contained in:
parent
56ed182429
commit
bca15c8e10
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user