DEV Community

Discussion on: Better error handling with async/await

Collapse
 
sobiodarlington profile image
Sobio Darlington • Edited

This is a great approach.

I don't do this checks in my controllers when writing production code.

I mostly use my handle function when I have no control over what is returned from an asynchronous request/operations.

I'll experiment with your approach and probably write a post on it.