mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Be more verbose on the stack-mismatch errors
This commit is contained in:
parent
767ec1d670
commit
ce62c7c01c
@ -42,7 +42,7 @@ class StackHeightChecker
|
|||||||
public:
|
public:
|
||||||
StackHeightChecker(CompilerContext const& _context):
|
StackHeightChecker(CompilerContext const& _context):
|
||||||
m_context(_context), stackHeight(m_context.stackHeight()) {}
|
m_context(_context), stackHeight(m_context.stackHeight()) {}
|
||||||
void check() { solAssert(m_context.stackHeight() == stackHeight, "I sense a disturbance in the stack. "); }
|
void check() { solAssert(m_context.stackHeight() == stackHeight, std::string("I sense a disturbance in the stack: ") + std::to_string(m_context.stackHeight()) + " vs " + std::to_string(stackHeight)); }
|
||||||
private:
|
private:
|
||||||
CompilerContext const& m_context;
|
CompilerContext const& m_context;
|
||||||
unsigned stackHeight;
|
unsigned stackHeight;
|
||||||
|
Loading…
Reference in New Issue
Block a user