Show proper error message on Firefox login manager service failure

If the XPCOM service can't even be retrieved, show the same message as
when there's an error finding logins.
This commit is contained in:
Dan Stillman 2016-02-15 01:47:11 -05:00
parent 5f3313d132
commit c813df84dd

View file

@ -1232,9 +1232,9 @@ Zotero.Sync.Server = new function () {
}
Zotero.debug('Getting Zotero sync password');
try {
var loginManager = Components.classes["@mozilla.org/login-manager;1"]
.getService(Components.interfaces.nsILoginManager);
try {
var logins = loginManager.findLogins({}, _loginManagerHost, null, _loginManagerRealm);
}
catch (e) {