News for hackers. Stuff that matters.
Re:Node.js 15.0 by rmrfrmrf on Friday October 23, 2020 @06:09PM (#24874819)
idk if you've ever run into it, but `process.exit` has been a bit of a footgun in our node apps due to broken pipes and (sometimes) async io with `console`

we instead use

    process.on('unhandledRejection', (reason) => {
        throw reason;
    });
which, as long as you havent handled `uncaughtException`, prints the stack trace and aborts.

There are no comments on this comment yet.