diff options
author | chriseth <chris@ethereum.org> | 2017-08-02 20:45:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-02 20:45:11 +0800 |
commit | 04166ce1085daf8a0fb975b701e7b5980696d5bc (patch) | |
tree | 5255f6a622a9a30b03054fc30663c327b9a27f1a | |
parent | 3aacfc7e3569b27ca97dce41d886bbc3043546e0 (diff) | |
parent | 934a5dbf5382166a49a267bbd1a91782aaa0ecd0 (diff) | |
download | dexon-solidity-04166ce1085daf8a0fb975b701e7b5980696d5bc.tar dexon-solidity-04166ce1085daf8a0fb975b701e7b5980696d5bc.tar.gz dexon-solidity-04166ce1085daf8a0fb975b701e7b5980696d5bc.tar.bz2 dexon-solidity-04166ce1085daf8a0fb975b701e7b5980696d5bc.tar.lz dexon-solidity-04166ce1085daf8a0fb975b701e7b5980696d5bc.tar.xz dexon-solidity-04166ce1085daf8a0fb975b701e7b5980696d5bc.tar.zst dexon-solidity-04166ce1085daf8a0fb975b701e7b5980696d5bc.zip |
Merge pull request #2688 from ethereum/sourceformatter
More readable format for sourceformatter
-rw-r--r-- | libsolidity/interface/SourceReferenceFormatter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libsolidity/interface/SourceReferenceFormatter.cpp b/libsolidity/interface/SourceReferenceFormatter.cpp index 7730a99a..62d22999 100644 --- a/libsolidity/interface/SourceReferenceFormatter.cpp +++ b/libsolidity/interface/SourceReferenceFormatter.cpp @@ -101,6 +101,8 @@ 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); @@ -108,9 +110,8 @@ void SourceReferenceFormatter::printExceptionInformation( { 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; |