Merge pull request #2688 from ethereum/sourceformatter

More readable format for sourceformatter
This commit is contained in:
chriseth 2017-08-02 14:45:11 +02:00 committed by GitHub
commit 04166ce108

View File

@ -101,6 +101,8 @@ void SourceReferenceFormatter::printExceptionInformation(
_stream << _name; _stream << _name;
if (string const* description = boost::get_error_info<errinfo_comment>(_exception)) if (string const* description = boost::get_error_info<errinfo_comment>(_exception))
_stream << ": " << *description << endl; _stream << ": " << *description << endl;
else
_stream << endl;
printSourceLocation(_stream, location, _scannerFromSourceName); printSourceLocation(_stream, location, _scannerFromSourceName);
@ -108,9 +110,8 @@ void SourceReferenceFormatter::printExceptionInformation(
{ {
for (auto info: secondarylocation->infos) for (auto info: secondarylocation->infos)
{ {
_stream << info.first << " ";
printSourceName(_stream, &info.second, _scannerFromSourceName); printSourceName(_stream, &info.second, _scannerFromSourceName);
_stream << endl; _stream << info.first << endl;
printSourceLocation(_stream, &info.second, _scannerFromSourceName); printSourceLocation(_stream, &info.second, _scannerFromSourceName);
} }
_stream << endl; _stream << endl;