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,
|
util::Exception const& _exception,
|
||||||
Error::Type _type,
|
Error::Type _type,
|
||||||
CharStreamProvider const& _charStreamProvider,
|
CharStreamProvider const& _charStreamProvider,
|
||||||
bool _colored = false,
|
bool _colored = false
|
||||||
bool _withErrorIds = false
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
std::ostringstream errorOutput;
|
std::ostringstream errorOutput;
|
||||||
SourceReferenceFormatter formatter(errorOutput, _charStreamProvider, _colored, _withErrorIds);
|
SourceReferenceFormatter formatter(errorOutput, _charStreamProvider, _colored, false /* _withErrorIds */);
|
||||||
formatter.printExceptionInformation(_exception, _type);
|
formatter.printExceptionInformation(_exception, _type);
|
||||||
return errorOutput.str();
|
return errorOutput.str();
|
||||||
}
|
}
|
||||||
@ -78,12 +77,11 @@ public:
|
|||||||
util::Exception const& _exception,
|
util::Exception const& _exception,
|
||||||
Error::Severity _severity,
|
Error::Severity _severity,
|
||||||
CharStreamProvider const& _charStreamProvider,
|
CharStreamProvider const& _charStreamProvider,
|
||||||
bool _colored = false,
|
bool _colored = false
|
||||||
bool _withErrorIds = false
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
std::ostringstream errorOutput;
|
std::ostringstream errorOutput;
|
||||||
SourceReferenceFormatter formatter(errorOutput, _charStreamProvider, _colored, _withErrorIds);
|
SourceReferenceFormatter formatter(errorOutput, _charStreamProvider, _colored, false /* _withErrorIds */);
|
||||||
formatter.printExceptionInformation(_exception, _severity);
|
formatter.printExceptionInformation(_exception, _severity);
|
||||||
return errorOutput.str();
|
return errorOutput.str();
|
||||||
}
|
}
|
||||||
|
@ -125,8 +125,7 @@ Json::Value formatErrorWithException(
|
|||||||
_exception,
|
_exception,
|
||||||
_type,
|
_type,
|
||||||
_charStreamProvider,
|
_charStreamProvider,
|
||||||
false, // colored
|
false // colored
|
||||||
false // _withErrorIds
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (string const* description = _exception.comment())
|
if (string const* description = _exception.comment())
|
||||||
|
Loading…
Reference in New Issue
Block a user