Skip to content

Commit

Permalink
Merge pull request ethereum#2688 from ethereum/sourceformatter
Browse files Browse the repository at this point in the history
More readable format for sourceformatter
  • Loading branch information
chriseth authored Aug 2, 2017
2 parents 3aacfc7 + 934a5db commit 04166ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libsolidity/interface/SourceReferenceFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,17 @@ void SourceReferenceFormatter::printExceptionInformation(
_stream << _name;
if (string const* description = boost::get_error_info<errinfo_comment>(_exception))
_stream << ": " << *description << endl;
else
_stream << endl;

printSourceLocation(_stream, location, _scannerFromSourceName);

if (secondarylocation && !secondarylocation->infos.empty())
{
for (auto info: secondarylocation->infos)
{
_stream << info.first << " ";
printSourceName(_stream, &info.second, _scannerFromSourceName);
_stream << endl;
_stream << info.first << endl;
printSourceLocation(_stream, &info.second, _scannerFromSourceName);
}
_stream << endl;
Expand Down

0 comments on commit 04166ce

Please sign in to comment.