aboutsummaryrefslogtreecommitdiff
path: root/build2/dist/operation.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/dist/operation.cxx')
-rw-r--r--build2/dist/operation.cxx4
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);});