Avoid throwing if attempt to catch startup errors somehow fails?
This commit is contained in:
parent
a402350cda
commit
1c83646212
1 changed files with 7 additions and 3 deletions
|
@ -434,9 +434,13 @@ const ZOTERO_CONFIG = {
|
|||
var cs = Components.classes["@mozilla.org/consoleservice;1"].
|
||||
getService(Components.interfaces.nsIConsoleService);
|
||||
// Get startup errors
|
||||
var messages = {};
|
||||
cs.getMessageArray(messages, {});
|
||||
_startupErrors = [msg for each(msg in messages.value) if(_shouldKeepError(msg))];
|
||||
try {
|
||||
var messages = {};
|
||||
cs.getMessageArray(messages, {});
|
||||
_startupErrors = [msg for each(msg in messages.value) if(_shouldKeepError(msg))];
|
||||
} catch(e) {
|
||||
Zotero.logError(e);
|
||||
}
|
||||
// Register error observer
|
||||
cs.registerListener(ConsoleListener);
|
||||
|
||||
|
|
Loading…
Reference in a new issue