mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
feat: catch and log exceptions during migration
This commit is contained in:
@@ -32,7 +32,11 @@ export class MigrationRunner {
|
|||||||
|
|
||||||
const migrationBuilder = this.migrationBuilderService.build();
|
const migrationBuilder = this.migrationBuilderService.build();
|
||||||
|
|
||||||
|
try {
|
||||||
await migrationBuilder.migrate(migrationHelper);
|
await migrationBuilder.migrate(migrationHelper);
|
||||||
|
} catch (error) {
|
||||||
|
this.logService.error("Critical migration failure due to an exception: ", error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async waitForCompletion(): Promise<void> {
|
async waitForCompletion(): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user