aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r--build2/parser.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx
index 4d2b933..2ebb6fb 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -1211,8 +1211,7 @@ namespace build2
try {iv = to_version (v);}
catch (const invalid_argument& e)
{
- error (l) << "invalid version '" << v << "': " << e.what ();
- throw failed ();
+ fail (l) << "invalid version '" << v << "': " << e.what () << endf;
}
if (iv > BUILD2_VERSION)