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&)
|
catch(eth::OptimizerException const&)
|
||||||
{
|
{
|
||||||
auto err = make_shared<Error>(Error::Type::InternalCompilerError);
|
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Assembly optimizer exception for bytecode"));
|
||||||
*err << errinfo_comment("Assembly optimizer exception for bytecode");
|
|
||||||
m_errors.push_back(std::move(err);
|
|
||||||
}
|
}
|
||||||
catch(eth::AssemblyException const&)
|
catch(eth::AssemblyException const&)
|
||||||
{
|
{
|
||||||
auto err = make_shared<Error>(Error::Type::InternalCompilerError);
|
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Assembly exception for bytecode"));
|
||||||
*err << errinfo_comment("Assembly exception for bytecode");
|
|
||||||
m_errors.push_back(std::move(err);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -681,15 +677,11 @@ void CompilerStack::compileContract(
|
|||||||
}
|
}
|
||||||
catch(eth::OptimizerException const&)
|
catch(eth::OptimizerException const&)
|
||||||
{
|
{
|
||||||
auto err = make_shared<Error>(Error::Type::InternalCompilerError);
|
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Assembly optimizer exception for deployed bytecode"));
|
||||||
*err << errinfo_comment("Assembly optimizer exception for deployed bytecode");
|
|
||||||
m_errors.push_back(std::move(err);
|
|
||||||
}
|
}
|
||||||
catch(eth::AssemblyException const&)
|
catch(eth::AssemblyException const&)
|
||||||
{
|
{
|
||||||
auto err = make_shared<Error>(Error::Type::InternalCompilerError);
|
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Assembly exception for deployed bytecode"));
|
||||||
*err << errinfo_comment("Assembly exception for deployed bytecode");
|
|
||||||
m_errors.push_back(std::move(err);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
compiledContract.onChainMetadata = onChainMetadata;
|
compiledContract.onChainMetadata = onChainMetadata;
|
||||||
|
Loading…
Reference in New Issue
Block a user