re: Modern JavaScript, 10 things you should be using, starting today VIEW POST

TOP OF THREAD FULL DISCUSSION
re: My problem with async await is it seems to reduce options for error handling. Any way to mitigate that?
 

When you work with async/await you have the option to use catch as well.

For example:

await someAsync().catch(console.error);
 

Use try catch

try {
     await UserService.create(name, email);
} catch(error) {
    // Handle error
}
code of conduct - report abuse