mirror of
https://github.com/zotero/zotero.git
synced 2026-10-14 04:08:17 +00:00
Merge d4155488e1 into f483c80f36
This commit is contained in:
commit
8ebea24640
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue