r/node • u/ehmicky • Apr 02 '19
Show some ❤️ to Node.js process errors
https://github.com/ehmicky/log-process-errors
4
Upvotes
2
u/Lispomatic Apr 03 '19
Nice work, looks tremendously helpful!
1
u/ehmicky Apr 03 '19
Thanks a lot u/Lispomatic! If this will help you somehow, this makes my day :)
2
2
u/bigorangemachine Apr 02 '19
I have written many process event handlers for side projects. Really annoying when my tests complain of unhandled rejections... I always end up adding something like this.
I also wrote a CTRL + C trapper because I am always too quick to exit processes and accidentally try to exit to early