mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Bubble up error messages.
This commit is contained in:
1 parent
ae1d040285
commit
7a9ee69e98
6 files changed
+62
-10
No files matched your search
@@ -128,6 +128,7 @@ void ContractCompiler::appendCallValueCheck()
|
||||
{
|
||||
// Throw if function is not payable but call contained ether.
|
||||
m_context << Instruction::CALLVALUE;
|
||||
// TODO: error message?
|
||||
m_context.appendConditionalRevert();
|
||||
}
|
||||
|
||||
@@ -327,6 +328,7 @@ void ContractCompiler::appendFunctionSelector(ContractDefinition const& _contrac
|
||||
m_context << Instruction::STOP;
|
||||
}
|
||||
else
|
||||
// TODO: error message here?
|
||||
m_context.appendRevert();
|
||||
|
||||
for (auto const& it: interfaceFunctions)
|
||||
|
||||
Reference in new issue
Block a user