mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
SourceReferenceFormatter: Remove the ineffective _withErrorIds parameter from formatExceptionInformation()
This commit is contained in:
parent
8407c8c615
commit
4020552e1d
@ -64,12 +64,11 @@ public:
|
||||
util::Exception const& _exception,
|
||||
Error::Type _type,
|
||||
CharStreamProvider const& _charStreamProvider,
|
||||
bool _colored = false,
|
||||
bool _withErrorIds = false
|
||||
bool _colored = false
|
||||
)
|
||||
{
|
||||
std::ostringstream errorOutput;
|
||||
SourceReferenceFormatter formatter(errorOutput, _charStreamProvider, _colored, _withErrorIds);
|
||||
SourceReferenceFormatter formatter(errorOutput, _charStreamProvider, _colored, false /* _withErrorIds */);
|
||||
formatter.printExceptionInformation(_exception, _type);
|
||||
return errorOutput.str();
|
||||
}
|
||||
@ -78,12 +77,11 @@ public:
|
||||
util::Exception const& _exception,
|
||||
Error::Severity _severity,
|
||||
CharStreamProvider const& _charStreamProvider,
|
||||
bool _colored = false,
|
||||
bool _withErrorIds = false
|
||||
bool _colored = false
|
||||
)
|
||||
{
|
||||
std::ostringstream errorOutput;
|
||||
SourceReferenceFormatter formatter(errorOutput, _charStreamProvider, _colored, _withErrorIds);
|
||||
SourceReferenceFormatter formatter(errorOutput, _charStreamProvider, _colored, false /* _withErrorIds */);
|
||||
formatter.printExceptionInformation(_exception, _severity);
|
||||
return errorOutput.str();
|
||||
}
|
||||
|
@ -125,8 +125,7 @@ Json::Value formatErrorWithException(
|
||||
_exception,
|
||||
_type,
|
||||
_charStreamProvider,
|
||||
false, // colored
|
||||
false // _withErrorIds
|
||||
false // colored
|
||||
);
|
||||
|
||||
if (string const* description = _exception.comment())
|
||||
|
Loading…
Reference in New Issue
Block a user