diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-22 17:51:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-22 17:51:23 +0200 |
commit | e35961d3b980d2201699276a4e68de8a5f987480 (patch) | |
tree | 6f94e57963d217a303ed29b8df16ddde2ec176c2 | |
parent | 25eb62acb2bc74f7d1837301987701be3e74540c (diff) |
Improve diagnostics
-rw-r--r-- | build2/dist/operation.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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<target*> (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);}); |