Comment by Merad

5 years ago

Good grief, that pattern looks like it's effectively building a stack trace by hand. Does node not provide stack traces with errors?

It provides a stack trace but it's often unintelligible. This makes the location of the error much clearer in complex code.

Yeah, there really need to be a good reason to use catch(), and that's not it.