From b6ec0740e027fc1bc7f6d2513583187061bc8f0a Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 3 Mar 2015 20:19:33 +0100 Subject: Improved error messages --- src/core/model/Document.cpp | 6 +++--- 1 file 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; -- cgit v1.2.3