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

View File

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