aboutsummaryrefslogtreecommitdiff
path: root/bdep/project.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-08-16 17:57:54 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-08-16 17:57:54 +0300
commit0fb8bc472aafaacb6bff3b9f6a3af2df1aa8dc8a (patch)
tree067dbb2b5f8fc77ac2caa7715183e8f7f58fc609 /bdep/project.cxx
parentffdf220f64c7362bf06f8d43aa9820ed4634fdbb (diff)
Fix uncaught invalid_path exception
Diffstat (limited to 'bdep/project.cxx')
-rw-r--r--bdep/project.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/bdep/project.cxx b/bdep/project.cxx
index 21f6f09..7f80c9f 100644
--- a/bdep/project.cxx
+++ b/bdep/project.cxx
@@ -62,8 +62,7 @@ namespace bdep
{
for (dir_path d: po.config ())
{
- d.complete ();
- d.normalize ();
+ normalize (d, "configuration");
if (auto c = db.query_one<configuration> (query::path == d.string ()))
add (move (c));
@@ -135,9 +134,7 @@ namespace bdep
dir_path prj;
optional<dir_path> pkg;
- dir_path d (start);
- d.complete ();
- d.normalize ();
+ dir_path d (normalize (start, "project"));
for (; !d.empty (); d = d.directory ())
{
// Ignore errors when checking for file existence since we may be