diff options
author | chriseth <chris@ethereum.org> | 2018-04-11 22:13:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-11 22:13:41 +0800 |
commit | c9bdbcf470f4ca7f8d2d71f1be180274f534888d (patch) | |
tree | c2e87c1f85164bf7631e22c2ec53f9fd7bed681c /libsolidity/analysis | |
parent | b7b6d0ce7c0c01a3600421ee3a402b1c913d8892 (diff) | |
parent | 43d2954de83af5f64f526fd36f1cd5c3b5299498 (diff) | |
download | dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.tar.gz dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.tar.zst dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.zip |
Merge pull request #3309 from ethereum/limit-errors
Limit the number of errors output in a single run to 256
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index abe57778..8b57fc15 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -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()); } |