2min chapter

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

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode