From cf8021da3860e37e0bf0a73daf4aec5a177c9439 Mon Sep 17 00:00:00 2001
From: Jens Georg <jens.georg@desy.de>
Date: Mon, 4 Mar 2019 16:20:40 +0100
Subject: [PATCH] Fix parser error message when using wrong tag in arrays

---
 Modules/src/ConfigReader.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Modules/src/ConfigReader.cc b/Modules/src/ConfigReader.cc
index 795f06b7..e41aced3 100644
--- a/Modules/src/ConfigReader.cc
+++ b/Modules/src/ConfigReader.cc
@@ -214,7 +214,7 @@ namespace ChimeraTK {
           const xmlpp::Element* valueElement = dynamic_cast<const xmlpp::Element*>(valueChild);
           if(!valueElement) continue; // ignore comments etc.
           if(valueElement->get_name() != "value") {
-            parsingError("Expected 'value' tag instead of: " + root->get_name());
+            parsingError("Expected 'value' tag instead of: " + valueElement->get_name());
           }
           valueFound = true;
           auto index = valueElement->get_attribute("i");
-- 
GitLab