We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f614cdd commit 6b75e0eCopy full SHA for 6b75e0e
packages/nest-commander/src/command.factory.ts
@@ -19,8 +19,11 @@ export class CommandFactory {
19
optionsOrLogger?: CommandFactoryRunOptions | NestLogger,
20
): Promise<void> {
21
const app = await this.createWithoutRunning(rootModule, optionsOrLogger);
22
- await this.runApplication(app);
23
- await app.close();
+ try {
+ await this.runApplication(app);
24
+ } finally {
25
+ await app.close();
26
+ }
27
}
28
29
static async runWithoutClosing(
0 commit comments