DEV Community

Discussion on: Better error handling with async/await

Collapse
 
sobiodarlington profile image
Sobio Darlington • Edited

Why not only do this?

I'm not clear with this, but you could throw inside of .catch to propagate it if you like.

Your example has syntax error though.