fix(api): apply feedback

This commit is contained in:
yassinedorbozgithub
2025-05-31 19:47:58 +01:00
parent 8fda5b99de
commit ce1e98abc5

View File

@@ -31,7 +31,12 @@ async function bootstrap() {
process.exit(1);
} else if (command === 'migration') {
const migrationCommand = appContext.get(MigrationCommand);
await migrationCommand.run(restArgs);
try {
await migrationCommand.run(restArgs);
} catch (error) {
logger.error(`Migration command failed: ${error.message}`);
process.exit(1);
}
}
await appContext.close();
}