diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-16 17:57:54 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-16 17:57:54 +0300 |
commit | 0fb8bc472aafaacb6bff3b9f6a3af2df1aa8dc8a (patch) | |
tree | 067dbb2b5f8fc77ac2caa7715183e8f7f58fc609 /bdep/project.cxx | |
parent | ffdf220f64c7362bf06f8d43aa9820ed4634fdbb (diff) |
Fix uncaught invalid_path exception
Diffstat (limited to 'bdep/project.cxx')
-rw-r--r-- | bdep/project.cxx | 7 |
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 |