commit 0f2e24dc5cab5ccdac7411d6846bcfcd938904c3
parent cb707a55c8f8abc7d5cc9dd6cc23eba21bbb0308
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 3 Oct 2014 16:05:14 -0400
Log state check errors (and other logError calls) to debug output
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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);