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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user