input/buffered: rethrow read_error in Check()
This commit is contained in:
parent
63fe4d1d17
commit
ca5a400dbe
@ -59,6 +59,9 @@ BufferedInputStream::~BufferedInputStream() noexcept
|
|||||||
void
|
void
|
||||||
BufferedInputStream::Check()
|
BufferedInputStream::Check()
|
||||||
{
|
{
|
||||||
|
if (read_error)
|
||||||
|
std::rethrow_exception(read_error);
|
||||||
|
|
||||||
if (input)
|
if (input)
|
||||||
input->Check();
|
input->Check();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user