From beaefdf70648776cf83f80daf146eb774ff4c20c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 20 Sep 2016 17:49:31 +0200 Subject: Tweak --- src/libutil/util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libutil/util.cc') diff --git a/src/libutil/util.cc b/src/libutil/util.cc index c95a713fa112..68311a3df8ef 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -1230,10 +1230,10 @@ string base64Decode(const string & s) } -void callFailure(const std::function & failure) +void callFailure(const std::function & failure, std::exception_ptr exc) { try { - failure(std::current_exception()); + failure(exc); } catch (std::exception & e) { printMsg(lvlError, format("uncaught exception: %s") % e.what()); abort(); -- cgit 1.4.1