mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make assembler errors fatal
This commit is contained in:
parent
16276ab10b
commit
b0485e327b
@ -664,15 +664,11 @@ void CompilerStack::compileContract(
|
||||
}
|
||||
catch(eth::OptimizerException const&)
|
||||
{
|
||||
auto err = make_shared<Error>(Error::Type::InternalCompilerError);
|
||||
*err << errinfo_comment("Assembly optimizer exception for bytecode");
|
||||
m_errors.push_back(std::move(err);
|
||||
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Assembly optimizer exception for bytecode"));
|
||||
}
|
||||
catch(eth::AssemblyException const&)
|
||||
{
|
||||
auto err = make_shared<Error>(Error::Type::InternalCompilerError);
|
||||
*err << errinfo_comment("Assembly exception for bytecode");
|
||||
m_errors.push_back(std::move(err);
|
||||
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Assembly exception for bytecode"));
|
||||
}
|
||||
|
||||
try
|
||||
@ -681,15 +677,11 @@ void CompilerStack::compileContract(
|
||||
}
|
||||
catch(eth::OptimizerException const&)
|
||||
{
|
||||
auto err = make_shared<Error>(Error::Type::InternalCompilerError);
|
||||
*err << errinfo_comment("Assembly optimizer exception for deployed bytecode");
|
||||
m_errors.push_back(std::move(err);
|
||||
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Assembly optimizer exception for deployed bytecode"));
|
||||
}
|
||||
catch(eth::AssemblyException const&)
|
||||
{
|
||||
auto err = make_shared<Error>(Error::Type::InternalCompilerError);
|
||||
*err << errinfo_comment("Assembly exception for deployed bytecode");
|
||||
m_errors.push_back(std::move(err);
|
||||
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Assembly exception for deployed bytecode"));
|
||||
}
|
||||
|
||||
compiledContract.onChainMetadata = onChainMetadata;
|
||||
|
Loading…
Reference in New Issue
Block a user