summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/model/Document.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/model/Document.cpp b/src/core/model/Document.cpp
index 219e512..7e5e437 100644
--- a/src/core/model/Document.cpp
+++ b/src/core/model/Document.cpp
@@ -102,7 +102,7 @@ bool DocumentEntity::doValidate(Logger &logger) const
case 0:
if (!fieldDescs[f]->isOptional()) {
logger.error(std::string("Primitive Field \"") +
- fieldDescs[f]->getName() +
+ fieldDescs[f]->getNameOrDefaultName() +
"\" had no content!",
*subInst);
valid = false;
@@ -112,7 +112,7 @@ bool DocumentEntity::doValidate(Logger &logger) const
break;
default:
logger.error(std::string("Primitive Field \"") +
- fieldDescs[f]->getName() +
+ fieldDescs[f]->getNameOrDefaultName() +
"\" had more than one child!",
*subInst);
valid = false;
@@ -121,7 +121,7 @@ bool DocumentEntity::doValidate(Logger &logger) const
// if we are here we know that exactly one child exists.
if (!fields[f][0]->isa(&RttiTypes::DocumentPrimitive)) {
logger.error(std::string("Primitive Field \"") +
- fieldDescs[f]->getName() +
+ fieldDescs[f]->getNameOrDefaultName() +
"\" has non primitive content!",
*subInst);
valid = false;