mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-01 01:07:04 +02:00
chore(core): Fail the cli commands with correct exit code (#17291)
This commit is contained in:
parent
f888b3353b
commit
56ef0dbb77
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user