aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-12 09:38:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-12 09:38:04 +0200
commitd7ed84309eeda86e793c42864cebd7f8f3b7c66c (patch)
tree2160ad653a29c02e0d20a976e4a78d336802b460 /build
parent722cf9d345e38b6f5ff4ed538d1f68bc75b2ab51 (diff)
Add more diagnostics
Diffstat (limited to 'build')
-rw-r--r--build/b.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/build/b.cxx b/build/b.cxx
index 593fbc1..387df1c 100644
--- a/build/b.cxx
+++ b/build/b.cxx
@@ -323,7 +323,16 @@ main (int argc, char* argv[])
else
// Calculate out_root based on src_root/src_base.
//
- out_root = out_base.directory (src_base.leaf (src_root));
+ try
+ {
+ out_root = out_base.directory (src_base.leaf (src_root));
+ }
+ catch (const invalid_path&)
+ {
+ fail << "out_base suffix does not match src_root" <<
+ info << "src_root: " << src_root <<
+ info << "out_base: " << out_base;
+ }
}
else
{