wrapped in a single try/catch block to handle any errors:
How to write beautiful Node.js APIs using async/await and the Firebase Database
Paul Breslin
1.6K10

Is there no way to do something like `promise.fail()` to catch errors when using `async/await`?

Like what you read? Give Lincoln W Daniel a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.