www

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

commit 455f23df4b769827101f4022892251a767d5e310
parent a9a54ed21cdb22d72ffb5b4470bbc6af01fb3497
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 21 Dec 2016 08:30:06 -0500

Show stack for more startup errors

Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -675,7 +675,8 @@ Components.utils.import("resource://gre/modules/PluralForm.jsm"); throw e; } - Zotero.startupError = Zotero.getString('startupError.databaseUpgradeError') + "\n\n" + e; + Zotero.startupError = Zotero.getString('startupError.databaseUpgradeError') + "\n\n" + + (e.stack || e); throw e; } @@ -751,7 +752,7 @@ Components.utils.import("resource://gre/modules/PluralForm.jsm"); catch (e) { Zotero.logError(e); if (!Zotero.startupError) { - Zotero.startupError = Zotero.getString('startupError') + "\n\n" + e; + Zotero.startupError = Zotero.getString('startupError') + "\n\n" + (e.stack || e); } return false; } @@ -808,7 +809,7 @@ Components.utils.import("resource://gre/modules/PluralForm.jsm"); "startupError.close" + (Zotero.isStandalone ? 'Firefox' : 'Standalone') ); } else { - Zotero.startupError = Zotero.getString('startupError') + "\n\n" + e; + Zotero.startupError = Zotero.getString('startupError') + "\n\n" + (e.stack || e); } Zotero.debug(e.toString(), 1);