www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d974206d6578889a6beaf7caecb997e9bec16b6d
parent 8a6402a744178696271084325ccb2b557ee94c1c
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 22 Apr 2016 21:09:18 -0400

Add Zotero.warn()

Similar to Zotero.logError()

Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -1336,6 +1336,14 @@ Components.utils.import("resource://gre/modules/osfile.jsm"); } + this.warn = function (err) { + Zotero.debug(err, 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); + } + + /** * Display an alert in a given window *