Hacker News new | ask | show | jobs
by o11c 616 days ago
Or just throw an error.

See also `process.on('exit', ...)`; you can conditionally set process.exitCode in it (only if there was no other failure) if you want.