diff options
author | chriseth <c@ethdev.com> | 2015-06-06 07:04:55 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-07 18:51:15 +0800 |
commit | c2a9419e495e931a825e8146aec49ffc34e44954 (patch) | |
tree | a6674b16ad95fe108794e305abddc7981c1bed79 /ExpressionCompiler.cpp | |
parent | b51ef4a357b4b60fc01038b0e97280fb9ecca01e (diff) | |
download | dexon-solidity-c2a9419e495e931a825e8146aec49ffc34e44954.tar.gz dexon-solidity-c2a9419e495e931a825e8146aec49ffc34e44954.tar.zst dexon-solidity-c2a9419e495e931a825e8146aec49ffc34e44954.zip |
Improved "Stack too deep" error message.
Closes #2080.
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r-- | ExpressionCompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp index bac967d8..ba80a8ea 100644 --- a/ExpressionCompiler.cpp +++ b/ExpressionCompiler.cpp @@ -263,7 +263,7 @@ bool ExpressionCompiler::visit(Assignment const& _assignment) appendOrdinaryBinaryOperatorCode(Token::AssignmentToBinaryOp(op), *_assignment.getType()); if (lvalueSize > 0) { - solAssert(itemSize + lvalueSize <= 16, "Stack too deep."); + solAssert(itemSize + lvalueSize <= 16, "Stack too deep, try removing local variables."); // value [lvalue_ref] updated_value for (unsigned i = 0; i < itemSize; ++i) m_context << eth::swapInstruction(itemSize + lvalueSize) << eth::Instruction::POP; |