From e35961d3b980d2201699276a4e68de8a5f987480 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 22 Aug 2016 17:51:23 +0200 Subject: Improve diagnostics --- build2/dist/operation.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build2/dist') diff --git a/build2/dist/operation.cxx b/build2/dist/operation.cxx index 0ab9241..bbd7357 100644 --- a/build2/dist/operation.cxx +++ b/build2/dist/operation.cxx @@ -124,7 +124,9 @@ namespace build2 target& t (*static_cast (v)); if (rs != t.base_scope ().root_scope ()) - fail << "out of project target " << t; + fail << "target " << t << " is from a different project" << + info << "one dist() meta-operation can handle one project" << + info << "consider using several dist() meta-operations"; l5 ([&]{trace << diag_doing (a, t);}); -- cgit v1.1