www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 2d6a1b354129fe72d04faaaa988f8263892419ce
parent c54af7a5ae6fbe201cc2d59db24050abf754e8b6
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon,  5 Dec 2016 05:17:21 -0500

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.

Diffstat:
Mcomponents/zotero-service.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/components/zotero-service.js b/components/zotero-service.js @@ -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 () {