From b24ca4fa236ccc89600d30206172baf3eee386a7 Mon Sep 17 00:00:00 2001 From: Rhett Aultman Date: Fri, 18 Nov 2016 19:29:08 -0800 Subject: Fix tab, drop stupid '!!!', change error message. --- libsolidity/interface/CompilerStack.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index 5d4ccd92..dded81f5 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -183,10 +183,10 @@ bool CompilerStack::parse() if (m_contracts.find(contract->name()) != m_contracts.end()) { const ContractDefinition* existingContract = m_contracts.find(contract->name())->second.contract; - if (contract != existingContract) + if (contract != existingContract) BOOST_THROW_EXCEPTION(CompilerError() << errinfo_sourceLocation(contract->location()) << - errinfo_comment(contract->name() + " conflicts with contract at " + errinfo_comment(contract->name() + " is already defined at " + *(existingContract->location().sourceName))); } m_contracts[contract->name()].contract = contract; @@ -216,7 +216,7 @@ bool CompilerStack::parse() if (contract != existingContract) BOOST_THROW_EXCEPTION(CompilerError() << errinfo_sourceLocation(contract->location()) << - errinfo_comment(contract->name() + " conflicts with!!! contract at " + errinfo_comment(contract->name() + " is already defined at " + *(existingContract->location().sourceName))); } -- cgit