diff --git a/src/input/BufferedInputStream.cxx b/src/input/BufferedInputStream.cxx index 69fb0c064..4c8374bd9 100644 --- a/src/input/BufferedInputStream.cxx +++ b/src/input/BufferedInputStream.cxx @@ -59,6 +59,9 @@ BufferedInputStream::~BufferedInputStream() noexcept void BufferedInputStream::Check() { + if (read_error) + std::rethrow_exception(read_error); + if (input) input->Check(); }