diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-03-30 05:40:10 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-10 21:07:36 +0800 |
commit | b1db6eac8b298967b73e3f09c75f12f566b3074c (patch) | |
tree | 3b2659cec44947d79c60f903c43ab84e27c92734 /solc/jsonCompiler.cpp | |
parent | fefb3fad6fa20b9c99dd987a7869c297b279032e (diff) | |
download | dexon-solidity-b1db6eac8b298967b73e3f09c75f12f566b3074c.tar.gz dexon-solidity-b1db6eac8b298967b73e3f09c75f12f566b3074c.tar.zst dexon-solidity-b1db6eac8b298967b73e3f09c75f12f566b3074c.zip |
Introduce formatExceptionInformation
Diffstat (limited to 'solc/jsonCompiler.cpp')
-rw-r--r-- | solc/jsonCompiler.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/solc/jsonCompiler.cpp b/solc/jsonCompiler.cpp index 45322117..f55d0c8d 100644 --- a/solc/jsonCompiler.cpp +++ b/solc/jsonCompiler.cpp @@ -56,9 +56,7 @@ string formatError( function<Scanner const&(string const&)> const& _scannerFromSourceName ) { - ostringstream errorOutput; - SourceReferenceFormatter::printExceptionInformation(errorOutput, _exception, _name, _scannerFromSourceName); - return errorOutput.str(); + return SourceReferenceFormatter::formatExceptionInformation(_exception, _name, _scannerFromSourceName); } Json::Value functionHashes(ContractDefinition const& _contract) |