mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
chore(core): Fail the cli commands with correct exit code (#17291)
This commit is contained in:
@@ -282,7 +282,8 @@ export abstract class BaseCommand<F = never> {
|
||||
await sleep(100); // give any in-flight query some time to finish
|
||||
await this.dbConnection.close();
|
||||
}
|
||||
process.exit();
|
||||
const exitCode = error ? 1 : 0;
|
||||
process.exit(exitCode);
|
||||
}
|
||||
|
||||
protected onTerminationSignal(signal: string) {
|
||||
|
||||
Reference in New Issue
Block a user