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.ixx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libbuild2/script/timeout.ixx') diff --git a/libbuild2/script/timeout.ixx b/libbuild2/script/timeout.ixx index 755af17..e31ed07 100644 --- a/libbuild2/script/timeout.ixx +++ b/libbuild2/script/timeout.ixx @@ -4,9 +4,12 @@ namespace build2 { inline optional - parse_deadline (const string& s, const char* what, const location& l) + parse_deadline (const string& s, + const char* what, + const char* prefix, + const location& l) { - if (optional t = parse_timeout (s, what, l)) + if (optional t = parse_timeout (s, what, prefix, l)) return system_clock::now () + *t; else return nullopt; -- cgit v1.1