Merge pull request #7785 from ethereum/exception-cleanup

A lot of tiny cleanups to exceptions
This commit is contained in:
chriseth
2019-11-26 15:55:11 +01:00
committed by GitHub
9 changed files with 26 additions and 38 deletions
+5 -5
View File
@@ -207,11 +207,11 @@ void CodeGenerator::assemble(
}
catch (StackTooDeepError const& _e)
{
BOOST_THROW_EXCEPTION(
InternalCompilerError() << errinfo_comment(
"Stack too deep when compiling inline assembly" +
(_e.comment() ? ": " + *_e.comment() : ".")
));
solAssert(
false,
"Stack too deep when compiling inline assembly" +
(_e.comment() ? ": " + *_e.comment() : ".")
);
}
solAssert(transform.stackErrors().empty(), "Stack errors present but not thrown.");
}