This tiny piece of code will handle all uncaught exceptions and just log it to the console. The "uncaughtException" event is emitted when an uncaught JavaScript exception bubbles all the way back to the event loop. It's recommended we must shutdown our application after handle the uncaughtException. Similar to uncaughtException, we should also handle unhandledRejection, […]

Read more of this post