aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-16 16:05:05 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-05-16 16:28:12 +0300
commit320e849d17597aef40b9e3e62f79319f13f97e45 (patch)
tree9d6e4254c5461bfd3547aa4aa2d21057f77ee1b9 /build2/algorithm.cxx
parent5d54628076bd7fc97e90c81b6d0df0fef4ceae20 (diff)
Fix uncaught invalid_path exception
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r--build2/algorithm.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx
index f695c74..ba9f5bc 100644
--- a/build2/algorithm.cxx
+++ b/build2/algorithm.cxx
@@ -50,7 +50,7 @@ namespace build2
assert (phase == run_phase::match);
optional<string> ext;
- const target_type* tt (s.find_target_type (n, ext));
+ const target_type* tt (s.find_target_type (n, ext, location ()));
if (tt == nullptr)
fail << "unknown target type " << n.type << " in name " << n;
@@ -78,7 +78,7 @@ namespace build2
name n (cn);
optional<string> ext;
- const target_type* tt (s.find_target_type (n, ext));
+ const target_type* tt (s.find_target_type (n, ext, location ()));
// For now we treat an unknown target type as an unknown target. Seems
// logical.