Improved some log output in ThemeData.

This commit is contained in:
Leon Styhre 2021-01-17 21:52:34 +01:00
parent d2ec969d19
commit 7b19b2cc6b
2 changed files with 3 additions and 3 deletions

View file

@ -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());

View file

@ -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) << "\"";
}
};