aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-08-13 15:08:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-08-13 15:08:34 +0200
commitfd1f1c3d67815517499305c024d11270f1149ebf (patch)
tree51733cf5ac3ccfb767970c37d2fc8ce257cf02c3
parentcfd26b1d626260cb23a14fee85c4518d84e1aa67 (diff)
Diagnose non-existent project/package directory
Failed that we may silently fallback to using outer project directory which can be very confusing.
-rw-r--r--bdep/project.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/bdep/project.cxx b/bdep/project.cxx
index 7055e3c..9467be1 100644
--- a/bdep/project.cxx
+++ b/bdep/project.cxx
@@ -295,6 +295,9 @@ namespace bdep
{
for (const dir_path& d: dirs)
{
+ if (!exists (d))
+ fail << "project/package directory " << d << " does not exist";
+
project_package p (find_project_package (d));
// We only work on one project at a time.