mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
SolidityExecutionFramework: Fix compileContract() to print Yul errors from the correct source
This commit is contained in:
parent
0a71e41501
commit
311f025eb5
@ -76,7 +76,7 @@ bytes SolidityExecutionFramework::compileContract(
|
||||
{
|
||||
langutil::SourceReferenceFormatter formatter(std::cerr);
|
||||
|
||||
for (auto const& error: m_compiler.errors())
|
||||
for (auto const& error: asmStack.errors())
|
||||
formatter.printErrorInformation(*error);
|
||||
BOOST_ERROR("Assembly contract failed. IR: " + m_compiler.yulIROptimized({}));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user