From b1db6eac8b298967b73e3f09c75f12f566b3074c Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 29 Mar 2017 22:40:10 +0100 Subject: Introduce formatExceptionInformation --- solc/jsonCompiler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'solc') 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 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) -- cgit v1.2.3