aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/adhoc-rule-regex-pattern.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-10-26 11:36:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-10-26 11:36:19 +0200
commit0fc035dd4d51c70231a46d6b8a6ba18a91e8ae43 (patch)
tree798aa85b019275fcd828d459b0ffb5fa715ebf76 /libbuild2/adhoc-rule-regex-pattern.cxx
parent9dac152ff70d9dc616318630d634a83d266aee4a (diff)
Minor diagnostics improvement
Diffstat (limited to 'libbuild2/adhoc-rule-regex-pattern.cxx')
-rw-r--r--libbuild2/adhoc-rule-regex-pattern.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/adhoc-rule-regex-pattern.cxx b/libbuild2/adhoc-rule-regex-pattern.cxx
index 257952f..c221bef 100644
--- a/libbuild2/adhoc-rule-regex-pattern.cxx
+++ b/libbuild2/adhoc-rule-regex-pattern.cxx
@@ -86,7 +86,9 @@ namespace build2
tt = n.untyped () ? &file::static_type : s.find_target_type (n.type);
if (tt == nullptr)
- fail (loc) << "unknown target type " << n.type;
+ fail (loc) << "unknown target type " << n.type <<
+ info << "perhaps the module that defines this target type is "
+ << "not loaded by project " << *s.root_scope ();
}
bool e (n.pattern &&