diff options
Diffstat (limited to 'build2/cli')
-rw-r--r-- | build2/cli/init.cxx | 2 | ||||
-rw-r--r-- | build2/cli/rule.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/build2/cli/init.cxx b/build2/cli/init.cxx index 590d434..3e4ba03 100644 --- a/build2/cli/init.cxx +++ b/build2/cli/init.cxx @@ -159,7 +159,7 @@ namespace build2 if (!optional) error << "unable to execute " << args[0] << ": " << e; - if (e.child ()) + if (e.child) exit (1); // Fall through. diff --git a/build2/cli/rule.cxx b/build2/cli/rule.cxx index 96eafbc..7b191ea 100644 --- a/build2/cli/rule.cxx +++ b/build2/cli/rule.cxx @@ -293,7 +293,7 @@ namespace build2 { error << "unable to execute " << args[0] << ": " << e; - if (e.child ()) + if (e.child) exit (1); throw failed (); |