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
@@ -691,6 +691,7 @@ void CompilerUtils::convertType(
|
||||
solAssert(enumType.numberOfMembers() > 0, "empty enum should have caused a parser error.");
|
||||
m_context << u256(enumType.numberOfMembers() - 1) << Instruction::DUP2 << Instruction::GT;
|
||||
if (_asPartOfArgumentDecoding)
|
||||
// TODO: error message?
|
||||
m_context.appendConditionalRevert();
|
||||
else
|
||||
m_context.appendConditionalInvalid();
|
||||
|
||||
Reference in new issue
Block a user