From 40f3e4413b7eb36d32ab314dc1d854d8428116e6 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 1 Jun 2017 15:31:07 +0200 Subject: [PATCH] Improved error message. --- libsolidity/inlineasm/AsmAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsolidity/inlineasm/AsmAnalysis.cpp b/libsolidity/inlineasm/AsmAnalysis.cpp index 8ed59bc99..8fa72d7e3 100644 --- a/libsolidity/inlineasm/AsmAnalysis.cpp +++ b/libsolidity/inlineasm/AsmAnalysis.cpp @@ -345,7 +345,7 @@ bool AsmAnalyzer::expectExpression(Statement const& _statement) { m_errorReporter.typeError( locationOf(_statement), - "Expected instruction(s) to deposit one item to the stack but did deposit " + + "Expected expression to return one item to the stack but did return " + boost::lexical_cast(m_stackHeight - initialHeight) + " items." );