aboutsummaryrefslogtreecommitdiff
path: root/build2/file.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/file.cxx')
-rw-r--r--build2/file.cxx9
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;
}
}