From ce1e98abc5ba8bb15b052f7197212201f1a69f41 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Sat, 31 May 2025 19:47:58 +0100 Subject: [PATCH] fix(api): apply feedback --- api/src/cli.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/src/cli.ts b/api/src/cli.ts index 101d1612..30714f99 100644 --- a/api/src/cli.ts +++ b/api/src/cli.ts @@ -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(); }