DEV Community 👩‍💻👨‍💻

Discussion on: Better error handling with async/await

Collapse
abernier profile image
abernier

using throw inside .catch is the way to go to stop execution of the function. It's like our old if (err) return; ❤️