diff --git a/utils/disk-error-handler.hh b/utils/disk-error-handler.hh index 4b5113854e..19d5a78386 100644 --- a/utils/disk-error-handler.hh +++ b/utils/disk-error-handler.hh @@ -69,9 +69,9 @@ template>::value>::type> auto do_io_check(const io_error_handler& error_handler, Func&& func, Args&&... args) noexcept { return futurize_invoke(func, std::forward(args)...).handle_exception([&error_handler] (auto ep) { - error_handler(ep); - return futurize>::make_exception_future(ep); - }); + error_handler(ep); + return futurize>::make_exception_future(ep); + }); } template