commit d8d9758f27f9b0b081b9302512b11cfc817c9197
parent 48778b5d50d8d84b8b383000f517867f6b25c1a5
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 11 Sep 2017 03:52:30 -0400
Filter stack displayed in startup error dialog
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/components/zotero-service.js b/components/zotero-service.js
@@ -370,6 +370,14 @@ function ZoteroService() {
zContext.Zotero.startupErrorHandler();
}
else if (zContext.Zotero.startupError) {
+ try {
+ zContext.Zotero.startupError =
+ zContext.Zotero.Utilities.Internal.filterStack(
+ zContext.Zotero.startupError
+ );
+ }
+ catch (e) {}
+
let ps = Cc["@mozilla.org/embedcomp/prompt-service;1"]
.getService(Ci.nsIPromptService);
let buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_IS_STRING)