Fix data-dir-not-found error on first run with no legacy dataDir
This commit is contained in:
parent
352cf310b4
commit
982719bf83
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue