From 455f23df4b769827101f4022892251a767d5e310 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 21 Dec 2016 08:30:06 -0500 Subject: [PATCH] Show stack for more startup errors --- chrome/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 index 6ff63dfd00..0716fdc3e0 100644 --- 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);