From 7b19b2cc6b2574772cea753e900a034d93c83110 Mon Sep 17 00:00:00 2001 From: Leon Styhre <leon@leonstyhre.com> Date: Sun, 17 Jan 2021 21:52:34 +0100 Subject: [PATCH] Improved some log output in ThemeData. --- es-core/src/ThemeData.cpp | 4 ++-- es-core/src/ThemeData.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/es-core/src/ThemeData.cpp b/es-core/src/ThemeData.cpp index 624d701ea..c3a77e102 100644 --- a/es-core/src/ThemeData.cpp +++ b/es-core/src/ThemeData.cpp @@ -440,8 +440,8 @@ void ThemeData::parseElement(const pugi::xml_node& root, for (pugi::xml_node node = root.first_child(); node; node = node.next_sibling()) { auto typeIt = typeMap.find(node.name()); if (typeIt == typeMap.cend()) - throw error << "Unknown property type \"" << node.name() << - "\" (for element of type " << root.name() << ")."; + throw error << ": Unknown property type \"" << node.name() << + "\" (for element of type " << root.name() << ")"; std::string str = resolvePlaceholders(node.text().as_string()); diff --git a/es-core/src/ThemeData.h b/es-core/src/ThemeData.h index cbc14eb82..41f1c604d 100644 --- a/es-core/src/ThemeData.h +++ b/es-core/src/ThemeData.h @@ -70,7 +70,7 @@ public: { *this << "From theme \"" << deque.front() << "\""; for (auto it = deque.cbegin() + 1; it != deque.cend(); it++) - *this << " (from included file \"" << (*it) << "\")\n"; + *this << " -> \"" << (*it) << "\""; } };