From 38d031ecbe211b26d11b6155160ed744d47a2d95 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 19 May 2019 21:32:05 -0400 Subject: [PATCH] Log stack trace from Zotero.warn() --- chrome/content/zotero/xpcom/zotero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index ee05ce0d82..b2e856f277 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -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);