Log stack trace from Zotero.warn()

This commit is contained in:
Dan Stillman 2019-05-19 21:32:05 -04:00
parent f292d9c030
commit 38d031ecbe

View file

@ -1164,7 +1164,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
this.warn = function (err) {
Zotero.debug(err, 2);
Zotero.debug(err + "\n\n" + Zotero.Utilities.Internal.filterStack(new Error().stack), 2);
log(err.message ? err.message : err.toString(), "warning",
err.fileName ? err.fileName : (err.filename ? err.filename : null), null,
err.lineNumber ? err.lineNumber : null, null);