aboutsummaryrefslogtreecommitdiff
path: root/build2/function.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-10-23 09:52:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-10-23 09:52:46 +0200
commit030035bd25b3ededb2f78be1f576f2fe0e7d9c90 (patch)
treebd1e9ed7a0218a306faa41fff52124b6848a3fc3 /build2/function.hxx
parent83459829f24624e3cee20a7199af5c69e9678b69 (diff)
Move invalid_argument handler from default_thunk() to call()
This way we let a custom thunk catch derived exception (like invalid_path).
Diffstat (limited to 'build2/function.hxx')
-rw-r--r--build2/function.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/build2/function.hxx b/build2/function.hxx
index 5b84a69..728e613 100644
--- a/build2/function.hxx
+++ b/build2/function.hxx
@@ -221,12 +221,12 @@ namespace build2
class function_family
{
public:
- // The default thunk catches invalid_argument and issues diagnostics
- // by assuming it is related to function arguments and contains useful
- // description.
+ // The call() function above catches invalid_argument and issues
+ // diagnostics by assuming it is related to function arguments and
+ // contains useful description.
//
- // In order to implement a custom thunk (e.g., to catch additional extra
- // exceptions), you would normally call the default implementation.
+ // In order to catch additional exceptions, you can implement a custom
+ // thunk which would normally call this default implementation.
//
static value
default_thunk (const scope*, vector_view<value>, const function_overload&);