This commit is contained in:
abaevbog 2026-10-12 13:37:06 -07:00 • committed by GitHub
commit 8ebea24640
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);