From 330a06434e48a38df6237608542aba588135ae60 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 24 Aug 2011 01:15:21 +0000 Subject: [PATCH] Improve error logging --- chrome/content/zotero/xpcom/zotero.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 1285b3778b..18db66e6cf 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -853,7 +853,12 @@ if(appInfo.platformVersion[0] >= 2) { if(defaultSection.IsRelative) { var defaultProfile = prefDir.clone().QueryInterface(Components.interfaces.nsILocalFile); - for each(var dir in defaultSection.Path.split("/")) defaultProfile.append(dir); + try { + for each(var dir in defaultSection.Path.split("/")) defaultProfile.append(dir); + } catch(e) { + Zotero.logError("Could not find profile at "+defaultSection.Path); + throw e; + } } else { var defaultProfile = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile);