From 7dbd18c081dd327115a1b4b251ddcc26b290afb7 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Sat, 31 May 2025 19:59:32 +0100 Subject: [PATCH] fix(api): apply feedback --- api/src/cli.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/src/cli.ts b/api/src/cli.ts index 30714f99..fc9ba572 100644 --- a/api/src/cli.ts +++ b/api/src/cli.ts @@ -27,7 +27,11 @@ async function bootstrap() { const logger = await appContext.resolve(LoggerService); if (!ALLOWED_COMMANDS.includes(command)) { - logger.error(`unknown command '${command}'`); + if (!command) { + logger.error('No command provided.'); + } else { + logger.error(`Unknown command '${command}'`); + } process.exit(1); } else if (command === 'migration') { const migrationCommand = appContext.get(MigrationCommand);