summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-28 19:14:27 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-28 19:14:27 +0100
commita3462aa53ca47d10e55f04184eefa0e173c250ea (patch)
tree53bfd0c945e21eeca11f2e505f1f83a8207aed49
parentb21b3c74c2a5a8bcc1c64067dae3377bba03767a (diff)
Fixed error messages showing the context in which they occured
-rw-r--r--src/cli/Main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cli/Main.cpp b/src/cli/Main.cpp
index a67b380..e3b3333 100644
--- a/src/cli/Main.cpp
+++ b/src/cli/Main.cpp
@@ -175,6 +175,11 @@ int main(int argc, char **argv)
FileLocator fileLocator;
ParserContext context{registry, resourceManager, scope, project, logger};
+ // Connect the Source Context Callback of the logger to provide the user
+ // with context information (line, column, filename, text) for log messages
+ logger.setSourceContextCallback(
+ resourceManager.getSourceContextCallback());
+
// fill registry
registry.registerDefaultExtensions();
XmlParser xmlParser;