Do a better job of displaying startup errors

This helps ensure that the toolbar button opens an alert with the relevant
error instead of opening the Zotero pane with an infinite progress meter.
This commit is contained in:
Dan Stillman 2016-12-05 05:17:21 -05:00
parent c54af7a5ae
commit 2d6a1b3541

View file

@ -351,6 +351,9 @@ function ZoteroService() {
dump(e + "\n\n");
Components.utils.reportError(e);
if (!zContext.Zotero.startupError) {
zContext.Zotero.startupError = e;
}
throw e;
})
.then(function () {