From fd1f1c3d67815517499305c024d11270f1149ebf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 13 Aug 2020 15:08:34 +0200 Subject: Diagnose non-existent project/package directory Failed that we may silently fallback to using outer project directory which can be very confusing. --- bdep/project.cxx | 3 +++ 1 file changed, 3 insertions(+) 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. -- cgit v1.1