summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-23 15:43:36 +0100
committerAndreas Stöckel <andreas@somweyr.de>2015-01-23 15:43:36 +0100
commitaa817d3bfd90aa39b6fd8a915bc78a8bb210cd3d (patch)
treed918bafeaefc6f2782292a5b3b98598af04a5a0f
parentd242f74de618e92bb7baaca59aa224685783c5a8 (diff)
Referencing the nodes in which the validation fails
-rw-r--r--src/core/model/Node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/model/Node.cpp b/src/core/model/Node.cpp
index eb0e4a7..dbc85e2 100644
--- a/src/core/model/Node.cpp
+++ b/src/core/model/Node.cpp
@@ -363,7 +363,7 @@ bool Node::checkDuplicate(Handle<Node> elem,
logger.error(std::string("Element with name \"") + name +
std::string("\" defined multiple times in parent ") +
type().name + std::string(" \"") +
- Utils::join(path(), ".") + std::string("\""));
+ Utils::join(path(), ".") + std::string("\""), *elem);
return false;
}
return true;
@@ -375,7 +375,7 @@ bool Node::validateName(Logger &logger) const
{
if (!Utils::isIdentifier(name)) {
logger.error(type().name + std::string(" name \"") + name +
- std::string("\" is not a valid identifier"));
+ std::string("\" is not a valid identifier"), this);
return false;
}
return true;