From 4ff9fada053e9fdf8d3d452552840f4e5122a550 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 11 Aug 2011 03:58:02 +0000 Subject: [PATCH] Report errors using Zotero.logError instead of Components.utils.reportError(), so that we get the file and line number --- chrome/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 index 7de18a1371..c35612de06 100644 --- 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'); } }