Fix tab, drop stupid '!!!', change error message.

This commit is contained in:
Rhett Aultman 2016-11-18 19:29:08 -08:00 committed by Rhett Aultman
parent f3a84eab91
commit b24ca4fa23

View File

@ -183,10 +183,10 @@ bool CompilerStack::parse()
if (m_contracts.find(contract->name()) != m_contracts.end()) if (m_contracts.find(contract->name()) != m_contracts.end())
{ {
const ContractDefinition* existingContract = m_contracts.find(contract->name())->second.contract; const ContractDefinition* existingContract = m_contracts.find(contract->name())->second.contract;
if (contract != existingContract) if (contract != existingContract)
BOOST_THROW_EXCEPTION(CompilerError() << BOOST_THROW_EXCEPTION(CompilerError() <<
errinfo_sourceLocation(contract->location()) << errinfo_sourceLocation(contract->location()) <<
errinfo_comment(contract->name() + " conflicts with contract at " errinfo_comment(contract->name() + " is already defined at "
+ *(existingContract->location().sourceName))); + *(existingContract->location().sourceName)));
} }
m_contracts[contract->name()].contract = contract; m_contracts[contract->name()].contract = contract;
@ -216,7 +216,7 @@ bool CompilerStack::parse()
if (contract != existingContract) if (contract != existingContract)
BOOST_THROW_EXCEPTION(CompilerError() << BOOST_THROW_EXCEPTION(CompilerError() <<
errinfo_sourceLocation(contract->location()) << errinfo_sourceLocation(contract->location()) <<
errinfo_comment(contract->name() + " conflicts with!!! contract at " errinfo_comment(contract->name() + " is already defined at "
+ *(existingContract->location().sourceName))); + *(existingContract->location().sourceName)));
} }