about summary refs log tree commit diff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-20T15·49+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-20T15·49+0200
commitbeaefdf70648776cf83f80daf146eb774ff4c20c (patch)
tree192a97588aae0a99ec4ed806717eb0574e2d4f41 /src/libutil/util.hh
parentf12d56b27b9d8ed2411788f24af5b6dc63563568 (diff)
Tweak
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh3
1 files changed, 2 insertions, 1 deletions
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<void(std::exception_ptr exc)> & failure);
+void callFailure(const std::function<void(std::exception_ptr exc)> & failure,
+    std::exception_ptr exc = std::current_exception());
 
 
 /* Evaluate the function ‘f’. If it returns a value, call ‘success’