diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-03-03 20:19:33 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-03-03 20:19:33 +0100 |
commit | b6ec0740e027fc1bc7f6d2513583187061bc8f0a (patch) | |
tree | d055a51da6259595bb895417da44059a09b4d9c0 /src/core/model | |
parent | b730f4d9cc092f8ab2d7c71853431042d75d5d08 (diff) |
Improved error messages
Diffstat (limited to 'src/core/model')
-rw-r--r-- | src/core/model/Document.cpp | 6 |
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; |