Bubble up error messages.

This commit is contained in:
chriseth committed 2018-04-12 13:09:38 +02:00
1 parent ae1d040285
commit 7a9ee69e98
6 files changed
+62 -10

No files matched your search

+1
View File
@@ -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();