From dfea1573130de8416462a9aa74b8d3dd9149d013 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 24 Oct 2014 19:08:31 +0200 Subject: [PATCH] Use the passed stream, not std::cerr. --- libsolidity/SourceReferenceFormatter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libsolidity/SourceReferenceFormatter.cpp b/libsolidity/SourceReferenceFormatter.cpp index bc9e8f262..b270342c9 100644 --- a/libsolidity/SourceReferenceFormatter.cpp +++ b/libsolidity/SourceReferenceFormatter.cpp @@ -73,18 +73,18 @@ void SourceReferenceFormatter::printExceptionInformation(std::ostream& _stream, std::string const& _name, Scanner const& _scanner) { - std::cerr << _name; + _stream << _name; if (std::string const* description = boost::get_error_info(_exception)) - std::cerr << ": " << *description; + _stream << ": " << *description; if (int const* position = boost::get_error_info(_exception)) { - std::cerr << " "; - printSourcePosition(std::cerr, *position, _scanner); + _stream << " "; + printSourcePosition(_stream, *position, _scanner); } if (Location const* location = boost::get_error_info(_exception)) { - std::cerr << " "; + _stream << " "; printSourceLocation(_stream, *location, _scanner); } }