From 1ffe286a81b9bad005cfefa3fc8672aecb0ec0f8 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 22 Jun 2017 00:42:26 +0100 Subject: LLL: report correct name if a symbol was not found --- liblll/CodeFragment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblll/CodeFragment.cpp b/liblll/CodeFragment.cpp index ff173e91..eeb64270 100644 --- a/liblll/CodeFragment.cpp +++ b/liblll/CodeFragment.cpp @@ -177,7 +177,7 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s) error("Empty variable name not allowed"); auto it = _s.vars.find(n); if (it == _s.vars.end()) - error(std::string("Symbol not found: ") + s); + error(std::string("Symbol not found: ") + n); return it->second.first; }; -- cgit