From e7ddf810c0e6c598bd9dde468a45c207d7982805 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 16 Jun 2024 05:48:12 -0400 Subject: [PATCH] Fix error reporting for download failure on attachment open --- chrome/content/zotero/xpcom/sync/syncRunner.js | 2 +- chrome/content/zotero/zoteroPane.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/sync/syncRunner.js b/chrome/content/zotero/xpcom/sync/syncRunner.js index b695b5bc11..2786ee787d 100644 --- a/chrome/content/zotero/xpcom/sync/syncRunner.js +++ b/chrome/content/zotero/xpcom/sync/syncRunner.js @@ -1612,7 +1612,7 @@ Zotero.Sync.Runner_Module = function (options = {}) { if (!buttonText) { buttonText = Zotero.getString('errorReport.reportError'); buttonCallback = function () { - ZoteroPane.reportErrors(); + Zotero.getActiveZoteroPane().reportErrors(); }; } diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index e195ca030b..76599f9359 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -4850,7 +4850,7 @@ var ZoteroPane = new function() } catch (e) { // TODO: show error somewhere else - Zotero.debug(e, 1); + Zotero.logError(e); Zotero.Sync.Runner.alert(e); return; }