summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-26 00:28:37 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-26 00:28:37 +0100
commit174bab2a00b890495f458a982ecec7342579ea56 (patch)
treea915bdaef1c106366cdcfbcb6d97bab1c448f0ff
parent41f4dbae2bb45603435646993ac1c6fe9e30282d (diff)
Improving logger output ParserScope for ambigous resolution
-rw-r--r--src/core/parser/ParserScope.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/parser/ParserScope.cpp b/src/core/parser/ParserScope.cpp
index b236a1f..d2f5800 100644
--- a/src/core/parser/ParserScope.cpp
+++ b/src/core/parser/ParserScope.cpp
@@ -40,9 +40,9 @@ Rooted<Node> ParserScopeBase::resolve(const std::vector<std::string> &path,
if (res.size() > 1) {
logger.error(std::string("The reference \"") +
Utils::join(path, ".") + ("\" is ambigous!"));
- logger.note("Referenced objects are:");
+ logger.note("Referenced objects are:", SourceLocation{}, MessageMode::NO_CONTEXT);
for (const ResolutionResult &r : res) {
- logger.note(Utils::join(r.path(), "."));
+ logger.note(Utils::join(r.path(), "."), *(r.node));
}
}
return res[0].node;