Introduce formatExceptionInformation

This commit is contained in:
Alex Beregszaszi
2017-04-10 14:07:36 +01:00
parent fefb3fad6f
commit b1db6eac8b
2 changed files with 12 additions and 3 deletions
+1 -3
View File
@@ -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)