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

This commit is contained in:
Dan Stillman 2017-10-07 03:44:12 -04:00
parent 352cf310b4
commit 982719bf83

View file

@ -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);
}
}
}