3 ms·
That's why node modules generally don't throw exceptions, but rather pass them as the first argument to the callback. I think you can catch async errors if you
by coderzach 13y ago
That's why node modules generally don't throw exceptions, but rather pass them as the first argument to the callback.
I think you can catch async errors if you call the throw method on the generator.
http://wiki.ecmascript.org/doku.php?id=harmony:generators#methodthrow http://wiki.ecmascript.org/doku.php?id=harmony:generators#me...