www

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

commit 4ff9fada053e9fdf8d3d452552840f4e5122a550
parent a9f341a141d56befaa310d1b2f50ddd86198e2e4
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu, 11 Aug 2011 03:58:02 +0000

Report errors using Zotero.logError instead of Components.utils.reportError(), so that we get the file and line number


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

diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js @@ -89,7 +89,7 @@ Zotero.Schema = new function(){ if (obj.data.e) { if (obj.data.e.name && obj.data.e.name == "NS_ERROR_FAILURE" && obj.data.e.message.match(/nsIFile\.moveTo/)) { - Components.utils.reportError(obj.data.e); + Zotero.logError(obj.data.e); return false; } @@ -212,7 +212,7 @@ Zotero.Schema = new function(){ } catch (e) { Zotero.debug(e); - Components.utils.reportError(e); + Zotero.logError(e); } if (up2 || up3 || up4) { @@ -1276,7 +1276,7 @@ Zotero.Schema = new function(){ } catch(e){ Zotero.debug(e, 1); - Components.utils.reportError(e); + Zotero.logError(e); Zotero.DB.rollbackTransaction(); alert('Error initializing Zotero database'); throw(e); @@ -1287,7 +1287,7 @@ Zotero.Schema = new function(){ } catch (e) { Zotero.debug(e); - Components.utils.reportError(e); + Zotero.logError(e); alert('Error updating Zotero translators and styles'); } }