mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add shortcuts for formatting error information
This commit is contained in:
@@ -130,8 +130,5 @@ void ObjectCompilerTest::printErrors(ostream& _stream, ErrorList const& _errors)
|
||||
SourceReferenceFormatter formatter(_stream);
|
||||
|
||||
for (auto const& error: _errors)
|
||||
formatter.printExceptionInformation(
|
||||
*error,
|
||||
(error->type() == Error::Type::Warning) ? "Warning" : "Error"
|
||||
);
|
||||
formatter.printErrorInformation(*error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user