May 6, 2019
In this Hasty Treat, Scott and Wes discuss different error handling strategies.
If you want to know what’s happening with your errors, track them with Sentry. Sentry is open-source error tracking that helps developers monitor and fix crashes in real time. Cut your time on error resolution from five hours to five minutes. It works with any language and integrates with dozens of other services. Syntax listeners can get two months for free by visiting Sentry.io and using the coupon code “tastytreat”.
2:07 - Try / Catch
4:10 - Higher Order Function
.catch
chained on)7:46 - Handle the error when you call it
.catch
onto the end9:03 - Node.js Unhandled Rejection Event
process.on('unhandledRejectionEvent', callback)
9:40 - What do do with those errors