mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Also change error message.
This commit is contained in:
parent
8c3ec16132
commit
40d5d5a956
@ -508,7 +508,7 @@ string const& CompilerStack::onChainMetadata(string const& _contractName) const
|
|||||||
Scanner const& CompilerStack::scanner(string const& _sourceName) const
|
Scanner const& CompilerStack::scanner(string const& _sourceName) const
|
||||||
{
|
{
|
||||||
if (m_stackState < SourcesSet)
|
if (m_stackState < SourcesSet)
|
||||||
BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("Parsing was not successful."));
|
BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("No sources set."));
|
||||||
|
|
||||||
return *source(_sourceName).scanner;
|
return *source(_sourceName).scanner;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user