Re:Never Mix Promises and Callbacks in NodeJS
by Vevolut on Friday April 07, 2017 @12:53PM
(#14061343)
I may be mistaken but I don't think this will work exactly how you expect it to. If theres an unhandled exception thrown somewhere in the callback then it will fail silently. You need to add a .catch(console.error.bind(console)); at the very end to get back to default behavior.
[ Parent
| on HN ]
There are no comments on this comment yet.