www

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

commit 982719bf83bb170297259a9cb0a66d64528d58f6
parent 352cf310b45f91d63f28f6901453162bce9776f3
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat,  7 Oct 2017 03:44:12 -0400

Fix data-dir-not-found error on first run with no legacy dataDir

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

diff --git a/chrome/content/zotero/xpcom/dataDirectory.js b/chrome/content/zotero/xpcom/dataDirectory.js @@ -322,11 +322,11 @@ Zotero.DataDirectory = { useProfile = false; } } + // Legacy subdirectory doesn't exist or there was a problem accessing it, so + // just fall through to default location catch (e) { - Zotero.logError(e); - // Same as above -- throw error if we don't already have a DB - if (!useProfile) { - throw e; + if (!(e instanceof OS.File.Error && e.becauseNoSuchFile)) { + Zotero.logError(e); } } }