Skip to content

Commit

Permalink
Merge pull request #15375 from ethereum/propagate-assembly-exception-…
Browse files Browse the repository at this point in the history
…message

Propagate `AssemblyException` message
  • Loading branch information
matheusaaguiar authored Aug 30, 2024
2 parents 03880e4 + d7865f1 commit 7ad125f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libsolidity/interface/CompilerStack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1348,9 +1348,9 @@ void CompilerStack::assembleYul(
// Assemble deployment (incl. runtime) object.
compiledContract.object = compiledContract.evmAssembly->assemble();
}
catch (evmasm::AssemblyException const&)
catch (evmasm::AssemblyException const& error)
{
solAssert(false, "Assembly exception for bytecode");
solAssert(false, "Assembly exception for bytecode: "s + error.what());
}
solAssert(compiledContract.object.immutableReferences.empty(), "Leftover immutables.");

Expand All @@ -1361,9 +1361,9 @@ void CompilerStack::assembleYul(
// Assemble runtime object.
compiledContract.runtimeObject = compiledContract.evmRuntimeAssembly->assemble();
}
catch (evmasm::AssemblyException const&)
catch (evmasm::AssemblyException const& error)
{
solAssert(false, "Assembly exception for deployed bytecode");
solAssert(false, "Assembly exception for deployed bytecode"s + error.what());
}

// Throw a warning if EIP-170 limits are exceeded:
Expand Down

0 comments on commit 7ad125f

Please sign in to comment.