fix: handle errors with proper process exit

This commit is contained in:
mrjvs 2025-12-27 14:07:45 +01:00
parent e66bc817b1
commit e545d16863

View File

@ -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
});