SourceReferenceFormatter: Remove the ineffective _withErrorIds parameter from formatExceptionInformation()

This commit is contained in:
Kamil Śliwak 2023-08-08 17:54:05 +02:00
parent 8407c8c615
commit 4020552e1d
2 changed files with 5 additions and 8 deletions

View File

@ -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();
}

View File

@ -125,8 +125,7 @@ Json::Value formatErrorWithException(
_exception,
_type,
_charStreamProvider,
false, // colored
false // _withErrorIds
false // colored
);
if (string const* description = _exception.comment())