From 320e849d17597aef40b9e3e62f79319f13f97e45 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 16 May 2018 16:05:05 +0300 Subject: Fix uncaught invalid_path exception --- build2/algorithm.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/algorithm.cxx') 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 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 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. -- cgit v1.1