aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-12-02 21:58:14 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-02-01 20:23:47 +0800
commitce62c7c01c01c859f6b310309a186a966e835d77 (patch)
tree30f372cd346ecd219d268dc65e6bcbb264f3e0bd
parent767ec1d670808cd479ac74780bff51a1f1900f04 (diff)
downloaddexon-solidity-ce62c7c01c01c859f6b310309a186a966e835d77.tar
dexon-solidity-ce62c7c01c01c859f6b310309a186a966e835d77.tar.gz
dexon-solidity-ce62c7c01c01c859f6b310309a186a966e835d77.tar.bz2
dexon-solidity-ce62c7c01c01c859f6b310309a186a966e835d77.tar.lz
dexon-solidity-ce62c7c01c01c859f6b310309a186a966e835d77.tar.xz
dexon-solidity-ce62c7c01c01c859f6b310309a186a966e835d77.tar.zst
dexon-solidity-ce62c7c01c01c859f6b310309a186a966e835d77.zip
Be more verbose on the stack-mismatch errors
-rw-r--r--libsolidity/codegen/ContractCompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp
index f4279906..9d6129a3 100644
--- a/libsolidity/codegen/ContractCompiler.cpp
+++ b/libsolidity/codegen/ContractCompiler.cpp
@@ -42,7 +42,7 @@ class StackHeightChecker
public:
StackHeightChecker(CompilerContext const& _context):
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:
CompilerContext const& m_context;
unsigned stackHeight;