Log stack trace from Zotero.warn()
This commit is contained in:
parent
f292d9c030
commit
38d031ecbe
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue