diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-03-01 21:08:49 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-03-01 21:08:49 +0100 |
commit | b5cdca0331117ad3834b61eadd94ab3fcb6d2fba (patch) | |
tree | e1ee06a61e0e36863c454519b931bdf719e92c0c /src/core/parser/stack | |
parent | a7019614896fdd3e29b9a28f6a8cfd2c1b365983 (diff) |
improved error messages for empty field names.
Diffstat (limited to 'src/core/parser/stack')
-rw-r--r-- | src/core/parser/stack/DocumentHandler.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/parser/stack/DocumentHandler.cpp b/src/core/parser/stack/DocumentHandler.cpp index 2144c34..a307f71 100644 --- a/src/core/parser/stack/DocumentHandler.cpp +++ b/src/core/parser/stack/DocumentHandler.cpp @@ -235,7 +235,7 @@ bool DocumentChildHandler::start(Variant::mapType &args) throw LoggableException( std::string("An instance of \"") + strct->getName() + "\" is not allowed as child of field \"" + - field->getName() + "\" of descriptor \"" + + field->getNameOrDefaultName() + "\" of descriptor \"" + parent->getDescriptor()->getName() + "\"", location()); } @@ -245,8 +245,6 @@ bool DocumentChildHandler::start(Variant::mapType &args) parent->getDescriptor()->getFieldDescriptorIndex(); } // create the entity for the new element at last. - // TODO: REMOVE - strct_name = strct->getName(); entity = parent->createChildStructuredEntity(strct, lastFieldIdx, args, nameAttr); } |