aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/CompilerStack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity/interface/CompilerStack.cpp')
-rw-r--r--libsolidity/interface/CompilerStack.cpp6
1 files 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)));
}