aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-05-04 21:46:46 +0800
committerLiana Husikyan <liana@ethdev.com>2015-05-04 23:18:44 +0800
commitebaf3c48a64ce7bbd6643b1d115d1c59005d15ec (patch)
tree5ec4d1a40c99b769ce8127899f5b4031ea0430bc /AST.cpp
parent10c3d7655570277b78912b6ff14b5078fce1077a (diff)
downloaddexon-solidity-ebaf3c48a64ce7bbd6643b1d115d1c59005d15ec.tar.gz
dexon-solidity-ebaf3c48a64ce7bbd6643b1d115d1c59005d15ec.tar.zst
dexon-solidity-ebaf3c48a64ce7bbd6643b1d115d1c59005d15ec.zip
small fix
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/AST.cpp b/AST.cpp
index be64c698..50184fa5 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -151,7 +151,7 @@ void ContractDefinition::checkDuplicateFunctions() const
BOOST_THROW_EXCEPTION(
DeclarationError() <<
- errinfo_sourceLocation(getConstructor()->getLocation()) <<
+ errinfo_sourceLocation(functions[getName()].front()->getLocation()) <<
errinfo_comment("More than one constructor defined.") <<
errinfo_secondarySourceLocation(ssl)
);
@@ -165,9 +165,9 @@ void ContractDefinition::checkDuplicateFunctions() const
BOOST_THROW_EXCEPTION(
DeclarationError() <<
errinfo_sourceLocation(overloads[j]->getLocation()) <<
- errinfo_comment("Function with same name and arguments already defined.") <<
+ errinfo_comment("Function with same name and arguments defined twice.") <<
errinfo_secondarySourceLocation(SecondarySourceLocation().append(
- "The previous declaration is here:", overloads[i]->getLocation()))
+ "Other declaration is here:", overloads[i]->getLocation()))
);
}
}