Closed atombender closed 9 years ago
yes, unfortunately node streams just do not work like this (split is just an easier interface to the classic node streams)
however, if you do need error propagation, with regular node streams, you can use this module: https://github.com/mafintosh/pump
Understood. Thanks!
If you do this, then no errors from the piped stream will be caught:
One has to listen to error events on the original stream:
To let errors propagate correctly (for example, when using Rx/RxNode), one can do this:
I suspect that
split
should propagate errors this way.