Re:Asynchronous Error Handling
by swannodette on Saturday August 31, 2013 @01:56PM
(#6307497)
This is another problem with promises is the the mangling of the stack trace. In my version the stack traces are more or less left clean since you don't have to wrap at every step of your async pipeline.
http://spion.github.io/posts/analysis-generators-and-other-a...
Unfortunately most patterns that consolidate error handling also result with useless stack traces, or have to resort to performance-reducing trickery (Q). This also includes generators.