aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-02-15 06:45:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-02-15 06:45:08 +0200
commit1b9d3d75c4e853ae5a10c93a7a2ff5cc971ae8bc (patch)
tree7cce2814e296a35657a4708ee2a80eb3757a82e4
parent32d8e5e9ac8f315aef54ce37a3e97f3e5539731a (diff)
Improve diagnostics
-rw-r--r--bdep/project.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/bdep/project.cxx b/bdep/project.cxx
index 9803405..7321cc4 100644
--- a/bdep/project.cxx
+++ b/bdep/project.cxx
@@ -518,7 +518,8 @@ namespace bdep
package_info pi (package_b_info (o, d, b_info_flags::none));
if (pi.version.empty ())
- fail << "package in directory " << d << " does not use standard version";
+ fail << "package in directory " << d << " does not use standard version" <<
+ info << "perhaps the package does not load the version module?";
return move (pi.version);
}
@@ -549,6 +550,7 @@ namespace bdep
fail << "name mismatch for package " << p;
if (pi.version.empty ())
- fail << "package " << p << " does not use standard version";
+ fail << "package " << p << " does not use standard version" <<
+ info << "perhaps the package does not load the version module?";
}
}