Log state check errors (and other logError calls) to debug output
This commit is contained in:
parent
cb707a55c8
commit
0f2e24dc5c
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue