Merge pull request #3309 from ethereum/limit-errors

Limit the number of errors output in a single run to 256
This commit is contained in:
chriseth
2018-04-11 16:13:41 +02:00
committed by GitHub
7 changed files with 1172 additions and 78 deletions
+1 -11
View File
@@ -60,17 +60,7 @@ bool typeSupportedByOldABIEncoder(Type const& _type)
bool TypeChecker::checkTypeRequirements(ASTNode const& _contract)
{
try
{
_contract.accept(*this);
}
catch (FatalError const&)
{
// We got a fatal error which required to stop further type checking, but we can
// continue normally from here.
if (m_errorReporter.errors().empty())
throw; // Something is weird here, rather throw again.
}
_contract.accept(*this);
return Error::containsOnlyWarnings(m_errorReporter.errors());
}