mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): apply feedback
This commit is contained in:
parent
ce1e98abc5
commit
7dbd18c081
@ -27,7 +27,11 @@ async function bootstrap() {
|
|||||||
const logger = await appContext.resolve(LoggerService);
|
const logger = await appContext.resolve(LoggerService);
|
||||||
|
|
||||||
if (!ALLOWED_COMMANDS.includes(command)) {
|
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);
|
process.exit(1);
|
||||||
} else if (command === 'migration') {
|
} else if (command === 'migration') {
|
||||||
const migrationCommand = appContext.get(MigrationCommand);
|
const migrationCommand = appContext.get(MigrationCommand);
|
||||||
|
Loading…
Reference in New Issue
Block a user