Skip to content

Commit

Permalink
SourceReferenceFormatter: Remove the ineffective _withErrorIds parame…
Browse files Browse the repository at this point in the history
…ter from formatExceptionInformation()
  • Loading branch information
cameel committed Aug 11, 2023
1 parent 8407c8c commit 4020552
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
10 changes: 4 additions & 6 deletions liblangutil/SourceReferenceFormatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,11 @@ class SourceReferenceFormatter
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();
}
Expand All @@ -78,12 +77,11 @@ class SourceReferenceFormatter
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();
}
Expand Down
3 changes: 1 addition & 2 deletions libsolidity/interface/StandardCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ Json::Value formatErrorWithException(
_exception,
_type,
_charStreamProvider,
false, // colored
false // _withErrorIds
false // colored
);

if (string const* description = _exception.comment())
Expand Down

0 comments on commit 4020552

Please sign in to comment.