www

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

commit bf0de6e02f5eab452d33c81484a8e078f159afe3
parent 4a861ef5ea87d94c8186a772e0c3bf185fc3a5bc
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 12 Aug 2013 03:10:09 -0400

Tidy up some debug messages at startup

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

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -448,7 +448,7 @@ Components.utils.import("resource://gre/modules/Services.jsm"); Zotero.getString('startupError.checkPermissions') ]); Zotero.startupError = msg; - Zotero.debug(e); + Zotero.debug(e, 1); Components.utils.reportError(e); return false; } @@ -701,9 +701,7 @@ Components.utils.import("resource://gre/modules/Services.jsm"); var e = { name: 'NS_ERROR_FILE_ACCESS_DENIED', message: msg, - toString: function () { - return Zotero.name + ': ' + Zotero.message; - } + toString: function () this.message }; throw (e); } @@ -747,7 +745,8 @@ Components.utils.import("resource://gre/modules/Services.jsm"); Zotero.startupError = msg; } - Components.utils.reportError(e); + Zotero.debug(e.toString(), 1); + Components.utils.reportError(e); // DEBUG: doesn't always work Zotero.skipLoading = true; return false; }