read_istream_filtered: propagate read error from upstream
commit42e7e2a53492ed1772b7b5d8b328f8d0a66f8b33
authorJeff King <peff@peff.net>
Mon, 25 Mar 2013 20:18:16 +0000 (25 16:18 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Mar 2013 20:46:58 +0000 (27 13:46 -0700)
tree9b15820ba4428dca780fbc9a5d4c708002b6ec81
parentf54fac53786808130c82936e59be16000deba04a
read_istream_filtered: propagate read error from upstream

The filter istream pulls data from an "upstream" stream,
running it through a filter function. However, we did not
properly notice when the upstream filter yielded an error,
and just returned what we had read. Instead, we should
propagate the error.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
streaming.c