From d7ed84309eeda86e793c42864cebd7f8f3b7c66c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 12 Jul 2015 09:38:04 +0200 Subject: Add more diagnostics --- build/b.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 { -- cgit v1.1