From 1b9d3d75c4e853ae5a10c93a7a2ff5cc971ae8bc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Feb 2024 06:45:08 +0200 Subject: Improve diagnostics --- bdep/project.cxx | 6 ++++-- 1 file 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?"; } } -- cgit v1.1