Skip to content
loading...

re: JavaScript: Error handling with Promises and Async/Await VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Very useful, thank you :) I was just a bit confused by this statement, it seems to contradict itself?: "But the problem with the above module is ...
 

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 )

code of conduct - report abuse