aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis/TypeChecker.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-04-11 22:13:41 +0800
committerGitHub <noreply@github.com>2018-04-11 22:13:41 +0800
commitc9bdbcf470f4ca7f8d2d71f1be180274f534888d (patch)
treec2e87c1f85164bf7631e22c2ec53f9fd7bed681c /libsolidity/analysis/TypeChecker.cpp
parentb7b6d0ce7c0c01a3600421ee3a402b1c913d8892 (diff)
parent43d2954de83af5f64f526fd36f1cd5c3b5299498 (diff)
downloaddexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.tar
dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.tar.gz
dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.tar.bz2
dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.tar.lz
dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.tar.xz
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/TypeChecker.cpp')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp12
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());
}