In this Hasty Treat, Scott and Wes discuss different error handling strategies.
Sentry - SponsorIf you want to know what\u2019s happening with your errors, track them with\xa0Sentry. 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\xa0Sentry.io\xa0and using the coupon code \u201ctastytreat\u201d.
Show Notes2:07 - Try / Catch
4:10 - Higher Order Function
.catch
\xa0chained on)7:46 - Handle the error when you call it
.catch
\xa0onto the end9:03 - Node.js Unhandled Rejection Event
process.on('unhandledRejectionEvent', callback)
9:40 - What do do with those errors