aboutsummaryrefslogtreecommitdiff
path: root/build2/file.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-09-09 19:02:30 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-09-13 13:03:19 +0300
commit0ce6a95f5fca35888632551181e2c3756e38942c (patch)
treeed5248d14b88ad23535d757428f3ee174c1a8574 /build2/file.cxx
parentdc1b424b75f200a716c3bd9b91891cf7f818ad32 (diff)
Fix crashing on subprojects that have no project variable set
Diffstat (limited to 'build2/file.cxx')
-rw-r--r--build2/file.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/file.cxx b/build2/file.cxx
index 0040fd4..8239d1f 100644
--- a/build2/file.cxx
+++ b/build2/file.cxx
@@ -341,7 +341,7 @@ namespace build2
auto p (extract_variable (f, "src_root"));
if (!p.second)
- error << "variable 'src_root' expected as first line in " << f;
+ fail << "variable 'src_root' expected as first line in " << f;
src_root_v = move (p.first);
src_root = &cast<dir_path> (src_root_v);
@@ -356,7 +356,7 @@ namespace build2
auto p (extract_variable (f, "project"));
if (!p.second)
- error << "variable 'project' expected as first line in " << f;
+ fail << "variable 'project' expected as first line in " << f;
name = cast<string> (move (p.first));
}