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/file.cxx | |
parent | fae6cd2235c907e077dad7b5d8dc9b6d90a78a37 (diff) |
Use diagnostics facility from libbutl
Diffstat (limited to 'build2/file.cxx')
-rw-r--r-- | build2/file.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
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; } } |