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.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libutil/util.hh') diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 221165780a37..1a43bf400a03 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -383,7 +383,8 @@ string get(const T & map, const string & key, const string & def = "") /* Call ‘failure’ with the current exception as argument. If ‘failure’ throws an exception, abort the program. */ -void callFailure(const std::function & failure); +void callFailure(const std::function & failure, + std::exception_ptr exc = std::current_exception()); /* Evaluate the function ‘f’. If it returns a value, call ‘success’ -- cgit 1.4.1