diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-22 12:10:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-22 12:10:03 +0200 |
commit | 557269660c1d9796a7cf9e911efb9262f645e359 (patch) | |
tree | 0323bcb5a90c339fe87fcd193cf71bdcb3431c91 /build2/parser.cxx | |
parent | fae6cd2235c907e077dad7b5d8dc9b6d90a78a37 (diff) |
Use diagnostics facility from libbutl
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r-- | build2/parser.cxx | 3 |
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) |