Published
- 1 min read
nodejs catch uncaught exception
The solution for this is noted below
nodejs catch uncaught exception
Solution
process
.on('uncaughtException', (err) => console.error(err, 'Uncaught Exception'))
.on('unhandledRejection', (reason, promise) =>
console.error(reason, 'Unhandled Rejection at', promise)
)
Try other methods by searching on the site. That is if this doesn’t work