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/file.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'build2/file.cxx') diff --git a/build2/file.cxx b/build2/file.cxx index ce9571d..b049590 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -306,8 +306,7 @@ namespace build2 } catch (const io_error& e) { - error << "unable to read buildfile " << bf << ": " << e.what (); - throw failed (); + fail << "unable to read buildfile " << bf << ": " << e.what () << endf; } // Never reached. @@ -1050,12 +1049,10 @@ namespace build2 if (!p.empty ()) fail << "unable to import target " << pk << info << "consider explicitly specifying its project out_root via the " - << "config.import." << p << " command line variable"; + << "config.import." << p << " command line variable" << endf; else fail << "unable to import target " << pk << info << "consider adding its installation location" << - info << "or explicitly specifying its project name"; - - throw failed (); // No return. + info << "or explicitly specifying its project name" << endf; } } -- cgit v1.1