diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-05-04 21:46:46 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-05-04 23:18:44 +0800 |
commit | ebaf3c48a64ce7bbd6643b1d115d1c59005d15ec (patch) | |
tree | 5ec4d1a40c99b769ce8127899f5b4031ea0430bc /AST.cpp | |
parent | 10c3d7655570277b78912b6ff14b5078fce1077a (diff) | |
download | dexon-solidity-ebaf3c48a64ce7bbd6643b1d115d1c59005d15ec.tar.gz dexon-solidity-ebaf3c48a64ce7bbd6643b1d115d1c59005d15ec.tar.zst dexon-solidity-ebaf3c48a64ce7bbd6643b1d115d1c59005d15ec.zip |
small fix
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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())) ); } } |