1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

feat: catch and log exceptions during migration

This commit is contained in:
Andreas Coroiu
2024-07-02 12:00:48 +02:00
parent da7e466252
commit d68733b7e5

View File

@@ -32,7 +32,11 @@ export class MigrationRunner {
const migrationBuilder = this.migrationBuilderService.build();
await migrationBuilder.migrate(migrationHelper);
try {
await migrationBuilder.migrate(migrationHelper);
} catch (error) {
this.logService.error("Critical migration failure due to an exception: ", error);
}
}
async waitForCompletion(): Promise<void> {