mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
LLL: report correct name if a symbol was not found
This commit is contained in:
parent
581aace501
commit
1ffe286a81
@ -177,7 +177,7 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s)
|
|||||||
error<InvalidName>("Empty variable name not allowed");
|
error<InvalidName>("Empty variable name not allowed");
|
||||||
auto it = _s.vars.find(n);
|
auto it = _s.vars.find(n);
|
||||||
if (it == _s.vars.end())
|
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;
|
return it->second.first;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user