Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

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?

2 comments

Merad

Reply

rglover  5 years ago

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

vidarh  5 years ago

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities