feat: catch and log exceptions during migration
This commit is contained in:
parent
da7e466252
commit
d68733b7e5
|
@ -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> {
|
||||
|
|
Loading…
Reference in New Issue