From ca5a400dbe52efd6856f1264b7199cac77286e63 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 16 May 2019 22:08:33 +0200 Subject: [PATCH] input/buffered: rethrow read_error in Check() --- src/input/BufferedInputStream.cxx | 3 +++ 1 file changed, 3 insertions(+) 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(); }