Sign in
Log inSign up

Async and Await / better approach with error handling.

Imran Khan's photo
Imran Khan
·Aug 19, 2018

HI Everyone , what is the better approach when it comes to async / await with error handling. Of you we have to wrap it with try catch block. But we have to call each and every methods.

Feel like putting the error handling ie. try catch in middleware seems good approach. Does anyone follow better approach.

Thanks.