diff options
author | Christian <c@ethdev.com> | 2014-10-24 18:42:44 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-10-24 18:42:44 +0800 |
commit | 1ae1fc66e2d02fc17d4148a553a59ead402b9f54 (patch) | |
tree | 4c7378c2d1568a1f4bbffc95ea41bc3529d46be9 /NameAndTypeResolver.cpp | |
parent | 094ee44f721054518ff384aef7cde1afe649636d (diff) | |
download | dexon-solidity-1ae1fc66e2d02fc17d4148a553a59ead402b9f54.tar.gz dexon-solidity-1ae1fc66e2d02fc17d4148a553a59ead402b9f54.tar.zst dexon-solidity-1ae1fc66e2d02fc17d4148a553a59ead402b9f54.zip |
Use createTypeError everywhere and stream out Location.
Diffstat (limited to 'NameAndTypeResolver.cpp')
-rw-r--r-- | NameAndTypeResolver.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/NameAndTypeResolver.cpp b/NameAndTypeResolver.cpp index a5650272..c0467b03 100644 --- a/NameAndTypeResolver.cpp +++ b/NameAndTypeResolver.cpp @@ -182,8 +182,7 @@ bool ReferencesResolver::visit(UserDefinedTypeName& _typeName) StructDefinition* referencedStruct = dynamic_cast<StructDefinition*>(declaration); //@todo later, contracts are also valid types if (referencedStruct == nullptr) - BOOST_THROW_EXCEPTION(TypeError() << errinfo_sourceLocation(_typeName.getLocation()) - << errinfo_comment("Identifier does not name a type name.")); + BOOST_THROW_EXCEPTION(_typeName.createTypeError("Identifier does not name a type name.")); _typeName.setReferencedStruct(*referencedStruct); return false; } |