summaryrefslogtreecommitdiff
path: root/src/core/model/Document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/model/Document.cpp')
-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 fc39348..b29767e 100644
--- a/src/core/model/Document.cpp
+++ b/src/core/model/Document.cpp
@@ -180,7 +180,7 @@ bool DocumentEntity::doValidate(Logger &logger) const
// check if the parent reference is correct.
if (child->getParent() != subInst) {
logger.error(std::string("A child of field \"") +
- fieldDescs[f]->getName() +
+ fieldDescs[f]->getNameOrDefaultName() +
"\" has the wrong parent reference!",
*child);
valid = false;
@@ -209,7 +209,7 @@ bool DocumentEntity::doValidate(Logger &logger) const
c->getDescriptor()->getName() +
"\" is not allowed as child of an instance of \"" +
descriptor->getName() + "\" in field \"" +
- fieldDescs[f]->getName() + "\"",
+ fieldDescs[f]->getNameOrDefaultName() + "\"",
*child);
valid = false;
continue;
@@ -285,7 +285,7 @@ static int enforceGetFieldDescriptorIndex(
if (idx == -1) {
throw OusiaException(std::string("Descriptor \"") + desc->getName() +
"\" does not reference the given field \"" +
- fieldDescriptor->getName() + "\"");
+ fieldDescriptor->getNameOrDefaultName() + "\"");
}
return idx;
}