From 0f2e24dc5cab5ccdac7411d6846bcfcd938904c3 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 3 Oct 2014 16:05:14 -0400 Subject: [PATCH] Log state check errors (and other logError calls) to debug output --- chrome/content/zotero/xpcom/zotero.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 0e4a247c3d..f411629587 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1312,10 +1312,11 @@ Components.utils.import("resource://gre/modules/Services.jsm"); } /** - * Log a JS error to the Mozilla JS error console. + * Log a JS error to Mozilla JS error console and debug output * @param {Exception} err */ function logError(err) { + Zotero.debug(log, 1); log(err.message ? err.message : err.toString(), "error", err.fileName ? err.fileName : (err.filename ? err.filename : null), null, err.lineNumber ? err.lineNumber : null, null);