From 557269660c1d9796a7cf9e911efb9262f645e359 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Nov 2016 12:10:03 +0200 Subject: Use diagnostics facility from libbutl --- build2/parser.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'build2/parser.cxx') 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) -- cgit v1.1