mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add some missing error locations.
This commit is contained in:
parent
c6fa78c73e
commit
c4a0826f40
@ -60,7 +60,8 @@ bool AsmAnalyzer::operator()(assembly::Literal const& _literal)
|
|||||||
{
|
{
|
||||||
m_errors.push_back(make_shared<Error>(
|
m_errors.push_back(make_shared<Error>(
|
||||||
Error::Type::TypeError,
|
Error::Type::TypeError,
|
||||||
"String literal too long (" + boost::lexical_cast<std::string>(_literal.value.size()) + " > 32)"
|
"String literal too long (" + boost::lexical_cast<std::string>(_literal.value.size()) + " > 32)",
|
||||||
|
_literal.location
|
||||||
));
|
));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -89,7 +90,7 @@ bool AsmAnalyzer::operator()(assembly::Identifier const& _identifier)
|
|||||||
m_errors.push_back(make_shared<Error>(
|
m_errors.push_back(make_shared<Error>(
|
||||||
Error::Type::TypeError,
|
Error::Type::TypeError,
|
||||||
"Function " + _identifier.name + " used without being called.",
|
"Function " + _identifier.name + " used without being called.",
|
||||||
_identifier.location
|
_identifier.location
|
||||||
));
|
));
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user