From db0edaafe15831ba6fa9c2109da37942506c62b1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 23 Jan 2016 11:14:05 +0200 Subject: Cleanup absolute/relative path diagnostics by introducing stream verbosity --- build2/file.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'build2/file.cxx') diff --git a/build2/file.cxx b/build2/file.cxx index 68b655e..9a5ab80 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -275,9 +275,7 @@ namespace build2 ifs.exceptions (ifstream::failbit | ifstream::badbit); - path rbf (diag_relative (bf)); - - lexer lex (ifs, rbf.string ()); + lexer lex (ifs, bf); token t (lex.next ()); token_type tt; @@ -286,7 +284,7 @@ namespace build2 tt != token_type::prepend && tt != token_type::append)) { - error << "variable '" << var << "' expected as first line in " << rbf; + error << "variable '" << var << "' expected as first line in " << bf; throw failed (); // Suppress "used uninitialized" warning. } -- cgit v1.1