Currently createReadStream() will not propagate an error when it should, eg if you call it on a file that does not exist. This PR causes the error to be correctly passed into the responding stream. (I would've expected pump() to do that but for some reason it doesn't).
Currently
createReadStream()
will not propagate an error when it should, eg if you call it on a file that does not exist. This PR causes the error to be correctly passed into the responding stream. (I would've expectedpump()
to do that but for some reason it doesn't).