3 ms·
Handling uncaughtException and unhandledPromiseRejection is a common mistake. You should not do it unless you have a good reason. Your program should die for sc
by rezonant 3y ago
Handling uncaughtException and unhandledPromiseRejection is a common mistake. You should not do it unless you have a good reason. Your program should die for science, and you should fix the place where you didn't handle that exception or rejection.
Unless of course your handler results in dying for science, then it's fine (ie for sending to an observability service first)