JS Party: JavaScript, CSS, Web Development cover image

JS logging & error handling

JS Party: JavaScript, CSS, Web Development

CHAPTER

Is There a Reason for Throwing Stacks in C L I?

Air constructors now have an optional cause field in their options object. So you can like, catch a throw and then add more contect by creating a new air with a cause of the caught air. Another thing we could talk about two similar to the reason field. People don't care what language your s l i tool is written in. If you're throwing stacks in, they're there in front of user. They're not really actionable by the userr other than, maybe a nice one will copy and paste that into a get hub issue. You don't need to just throw and ndump a stack trace, because nobody should have to care about that. In a perfect world

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner