DEV Community

Discussion on: JavaScript: Error handling with Promises and Async/Await

Collapse
 
fluffystark profile image
John Matt

I think the catch block it was referring to is the catch block right after the then block. But the goal was to have a single catch block do all the error handling but from that code, it had two catch blocks ( 1. for module errors, 2. for promise/then errors )