Ignore failure trying to show data dir migration status message

I saw this once in Standalone but haven't been able to reproduce it. (It
will now manifest as a progress bar without a status message.)
This commit is contained in:
Dan Stillman 2016-11-22 03:32:16 -05:00
parent c2033ef5a1
commit 8383c5cda8

View File

@ -1507,8 +1507,15 @@ Components.utils.import("resource://gre/modules/osfile.jsm");
let errors;
let mode = automatic ? 'automatic' : 'manual';
// This can seemingly fail due to a race condition building the Standalone window,
// so just ignore it if it does
try {
this.showZoteroPaneProgressMeter(Zotero.getString("dataDir.migration.inProgress"));
}
catch (e) {
Zotero.logError(e);
}
try {
errors = yield Zotero.migrateDataDirectory(oldDir, newDir, partial, progressHandler);
}
catch (e) {