diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index c9333c598f..ac4308c28a 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1516,7 +1516,12 @@ const { CommandLineOptions } = ChromeUtils.importESModule("chrome://zotero/conte } if (asStrings) { - errors.push(altMessage || msg.message) + let message = altMessage || msg.message; + // Stringify exceptions object instead of just returning "Object" + if (message.includes('uncaught exception: Object') && typeof msg.exception == "object") { + message = "[JavaScript Error:" + JSON.stringify(msg.exception); + } + errors.push(message); } else { errors.push(msg);