aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-04 19:02:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-04 19:02:28 +0200
commit39f2b2237c559808b52341cb119c61549e46ebee (patch)
treee9c868f51a0c1b2ff58fde7c81d00ccf4a1b8c47
parentec6be98098b1be030e4512f4f6ea53420e8c53c7 (diff)
Fix target name printing in diagnostics
-rw-r--r--build2/test/rule.cxx2
-rw-r--r--build2/test/script/script.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx
index 02026e8..9861baf 100644
--- a/build2/test/rule.cxx
+++ b/build2/test/rule.cxx
@@ -585,7 +585,7 @@ namespace build2
if (t == nullptr)
fail << "invalid test executable override: unknown target: '"
- << n << "'";
+ << *n << "'";
}
}
else
diff --git a/build2/test/script/script.cxx b/build2/test/script/script.cxx
index c2b13ca..c5cede8 100644
--- a/build2/test/script/script.cxx
+++ b/build2/test/script/script.cxx
@@ -552,7 +552,7 @@ namespace build2
t = search_existing (*n, tt.base_scope ());
if (t == nullptr)
- fail << "unknown target '" << n << "' in test variable";
+ fail << "unknown target '" << *n << "' in test variable";
}
}
else