LLL: report correct name if a symbol was not found

This commit is contained in:
Alex Beregszaszi 2017-06-22 00:42:26 +01:00
parent 581aace501
commit 1ffe286a81

View File

@ -177,7 +177,7 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s)
error<InvalidName>("Empty variable name not allowed");
auto it = _s.vars.find(n);
if (it == _s.vars.end())
error<InvalidName>(std::string("Symbol not found: ") + s);
error<InvalidName>(std::string("Symbol not found: ") + n);
return it->second.first;
};