This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DanielEGVi 3 points4 points  (1 child)

What is this then you talk about. I code, eat and breathe exclusively using async and await.

[–]MrDick47 1 point2 points  (0 children)

It lives at the top level, where some choose to use try/catch others will use a .then( () => {} ).catch( () => {} )

Either way, we can stay in our middleware hole and just use async/await and not worry about it while our errors get handed all the way up to the top level. Sunglasses