Also change error message.

This commit is contained in:
chriseth 2017-05-26 11:13:32 +02:00 committed by GitHub
parent 8c3ec16132
commit 40d5d5a956

View File

@ -508,7 +508,7 @@ string const& CompilerStack::onChainMetadata(string const& _contractName) const
Scanner const& CompilerStack::scanner(string const& _sourceName) const
{
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;
}