mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
SourceReferenceFormatter: Support full range of options in formatErrorInformation()
This commit is contained in:
@@ -85,12 +85,10 @@ std::optional<Error> parseAndReturnFirstError(
|
||||
if (_allowWarnings && e->type() == Error::Type::Warning)
|
||||
continue;
|
||||
if (error)
|
||||
{
|
||||
string errors;
|
||||
for (auto const& err: stack.errors())
|
||||
errors += SourceReferenceFormatter::formatErrorInformation(*err, stack);
|
||||
BOOST_FAIL("Found more than one error:\n" + errors);
|
||||
}
|
||||
BOOST_FAIL(
|
||||
"Found more than one error:\n" +
|
||||
SourceReferenceFormatter::formatErrorInformation(stack.errors(), stack)
|
||||
);
|
||||
error = e;
|
||||
}
|
||||
if (!success)
|
||||
|
||||
Reference in New Issue
Block a user