diff options
author | Christian <c@ethdev.com> | 2014-10-25 01:08:31 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-10-25 01:08:31 +0800 |
commit | 2a24c3d8109d34cea6e47de77f519565e42c60fe (patch) | |
tree | 0939f5a70fa07e9acee67116260a582a9528cd11 | |
parent | 33babb0c6fab4ea6851720a633ad847793208b1a (diff) | |
download | dexon-solidity-2a24c3d8109d34cea6e47de77f519565e42c60fe.tar dexon-solidity-2a24c3d8109d34cea6e47de77f519565e42c60fe.tar.gz dexon-solidity-2a24c3d8109d34cea6e47de77f519565e42c60fe.tar.bz2 dexon-solidity-2a24c3d8109d34cea6e47de77f519565e42c60fe.tar.lz dexon-solidity-2a24c3d8109d34cea6e47de77f519565e42c60fe.tar.xz dexon-solidity-2a24c3d8109d34cea6e47de77f519565e42c60fe.tar.zst dexon-solidity-2a24c3d8109d34cea6e47de77f519565e42c60fe.zip |
Use the passed stream, not std::cerr.
-rw-r--r-- | SourceReferenceFormatter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/SourceReferenceFormatter.cpp b/SourceReferenceFormatter.cpp index bc9e8f26..b270342c 100644 --- a/SourceReferenceFormatter.cpp +++ b/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<errinfo_comment>(_exception)) - std::cerr << ": " << *description; + _stream << ": " << *description; if (int const* position = boost::get_error_info<errinfo_sourcePosition>(_exception)) { - std::cerr << " "; - printSourcePosition(std::cerr, *position, _scanner); + _stream << " "; + printSourcePosition(_stream, *position, _scanner); } if (Location const* location = boost::get_error_info<errinfo_sourceLocation>(_exception)) { - std::cerr << " "; + _stream << " "; printSourceLocation(_stream, *location, _scanner); } } |