diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-06-19 08:38:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-06-19 08:38:56 +0200 |
commit | cde3ea58802c700ed8fd3b11e46eb973a7018a12 (patch) | |
tree | 03038c64f62b30b56334e7988e6add370520c895 /build2/cc/compile-rule.cxx | |
parent | a5b95ad0d6ee18f2deb9e98e3058efd12bf0f492 (diff) |
Improve diagnostics
Diffstat (limited to 'build2/cc/compile-rule.cxx')
-rw-r--r-- | build2/cc/compile-rule.cxx | 10 |
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 |