Closed jlipps closed 4 years ago
in Node.js won’t the error already be as an unhandled async error? does this make it look any nicer? usually when you console log error instances they don’t actually give you the trace
You do get the trace (at least so far as I can tell in the Node versions I use). The only thing you don't get is the few lines that discuss the unhandled promise rejections. It is a very small difference.
that sounds much nicer, i’ll merge it
i always do this, not sure if you like this pattern. just a drive-by while reading the code :-)