Skip migration on error checking whether dataDir is on different drive
This commit is contained in:
parent
f546fbda99
commit
f0b7a212e5
|
@ -840,6 +840,7 @@ Zotero.DataDirectory = {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip migration if new dir on different drive and prompt
|
// Skip migration if new dir on different drive and prompt
|
||||||
|
try {
|
||||||
if (yield this.isNewDirOnDifferentDrive(dataDir, newDir)) {
|
if (yield this.isNewDirOnDifferentDrive(dataDir, newDir)) {
|
||||||
Zotero.debug(`New dataDir ${newDir} is on a different drive from ${dataDir} -- skipping migration`);
|
Zotero.debug(`New dataDir ${newDir} is on a different drive from ${dataDir} -- skipping migration`);
|
||||||
Zotero.DataDirectory.newDirOnDifferentDrive = true;
|
Zotero.DataDirectory.newDirOnDifferentDrive = true;
|
||||||
|
@ -849,6 +850,12 @@ Zotero.DataDirectory = {
|
||||||
+ Zotero.getString(`dataDir.migration.failure.full.automatic.text2`, Zotero.appName);
|
+ Zotero.getString(`dataDir.migration.failure.full.automatic.text2`, Zotero.appName);
|
||||||
return this.fullMigrationFailurePrompt(dataDir, newDir, error);
|
return this.fullMigrationFailurePrompt(dataDir, newDir, error);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
Zotero.logError("Error checking whether data directory is on different drive "
|
||||||
|
+ "-- skipping migration:\n\n" + e);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Check for an existing pipe from other running versions of Zotero pointing at the same data
|
// Check for an existing pipe from other running versions of Zotero pointing at the same data
|
||||||
// directory, and skip migration if found
|
// directory, and skip migration if found
|
||||||
|
|
Loading…
Reference in New Issue
Block a user