Log state check errors (and other logError calls) to debug output

This commit is contained in:
Dan Stillman 2014-10-03 16:05:14 -04:00
parent cb707a55c8
commit 0f2e24dc5c

View file

@ -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);