Fail if parsing failed in AnalysisFramework

Otherwise Compilerstack::analyze will throw an exception.
This commit is contained in:
Alex Beregszaszi 2018-12-18 11:08:11 +00:00
parent c2ec6d71b4
commit ba15bc0a23

View File

@ -52,7 +52,7 @@ AnalysisFramework::parseAnalyseAndReturnError(
m_compiler.setEVMVersion(dev::test::Options::get().evmVersion());
if (!m_compiler.parse())
{
BOOST_ERROR("Parsing contract failed in analysis test suite:" + formatErrors());
BOOST_FAIL("Parsing contract failed in analysis test suite:" + formatErrors());
}
m_compiler.analyze();