Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Merad
· 5y ago · 0 comments
Good grief, that pattern looks like it's effectively building a stack trace by hand. Does node not provide stack traces with errors?
Comments
[–]
rglover
5y ago
It provides a stack trace but it's often unintelligible. This makes the location of the error much clearer in complex code.
[–]
vidarh
5y ago
Yeah, there really need to be a good reason to use catch(), and that's not it.