commit 330a06434e48a38df6237608542aba588135ae60 parent abd2456d28cb89d321532cf6d4a37fe84deda363 Author: Simon Kornblith <simon@simonster.com> Date: Wed, 24 Aug 2011 01:15:21 +0000 Improve error logging Diffstat:
| M | 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 @@ -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);