mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-04-22 23:17:17 -05:00
fix: handle errors with proper process exit
This commit is contained in:
parent
e66bc817b1
commit
e545d16863
|
|
@ -14,7 +14,10 @@ const program = baseProgram
|
|||
.addCommand(fileCmd);
|
||||
|
||||
program.parseAsync(process.argv)
|
||||
.catch(console.error)
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
})
|
||||
.then(() => {
|
||||
process.exit(0); // forcibly close as GRPC channels keep process going
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user