From 32f153664e7b6cadfb518b83e12b9768a150d709 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 9 Dec 2020 15:10:56 +0300 Subject: Prefix pseudo-builtin diagnostincs messages with their names --- libbuild2/script/timeout.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libbuild2/script/timeout.cxx') diff --git a/libbuild2/script/timeout.cxx b/libbuild2/script/timeout.cxx index a44e1bb..63cc61a 100644 --- a/libbuild2/script/timeout.cxx +++ b/libbuild2/script/timeout.cxx @@ -12,7 +12,10 @@ using namespace std; namespace build2 { optional - parse_timeout (const string& s, const char* what, const location& l) + parse_timeout (const string& s, + const char* what, + const char* prefix, + const location& l) { if (optional n = parse_number (s)) { @@ -21,6 +24,6 @@ namespace build2 : optional (); } else - fail (l) << "invalid " << what << " '" << s << "'" << endf; + fail (l) << prefix << "invalid " << what << " '" << s << "'" << endf; } } -- cgit v1.1