aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/compile-rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/compile-rule.cxx')
-rw-r--r--build2/cc/compile-rule.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx
index 2edb8cc..1ea3800 100644
--- a/build2/cc/compile-rule.cxx
+++ b/build2/cc/compile-rule.cxx
@@ -1293,16 +1293,18 @@ namespace build2
}
catch (const invalid_path& e)
{
- fail << "invalid -I directory " << e.path
- << " in variable " << var.name
+ fail << "invalid directory '" << e.path << "'"
+ << " in option '" << o << "'"
+ << " in variable " << var
<< " for target " << t;
}
l6 ([&]{trace << "-I " << d;});
if (d.relative ())
- fail << "relative -I directory " << d
- << " in variable " << var.name
+ fail << "relative directory " << d
+ << " in option '" << o << "'"
+ << " in variable " << var
<< " for target " << t;
// If the directory is not normalized, we can complain or normalize