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:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user