From 45ab2228fdff3a08645afc33b949278c8d544056 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 21 Jan 2024 13:22:26 +0100 Subject: [PATCH] If a formatVersion theme tag is found the error message now states that it's an unsupported tag and not a legacy tag --- es-core/src/ThemeData.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-core/src/ThemeData.cpp b/es-core/src/ThemeData.cpp index 22b3eea60..37598fa1b 100644 --- a/es-core/src/ThemeData.cpp +++ b/es-core/src/ThemeData.cpp @@ -570,7 +570,7 @@ void ThemeData::loadFile(const std::map& sysDataMap, // Check for legacy theme version. if (root.child("formatVersion") != nullptr) - throw error << ": Legacy tag found"; + throw error << ": Unsupported tag found"; if (sCurrentTheme->second.capabilities.variants.size() > 0) { for (auto& variant : sCurrentTheme->second.capabilities.variants) @@ -1512,7 +1512,7 @@ void ThemeData::parseIncludes(const pugi::xml_node& root) // Check for legacy theme version. if (root.child("formatVersion") != nullptr) - throw error << ": Legacy tag found"; + throw error << ": Unsupported tag found"; for (pugi::xml_node node {root.child("include")}; node; node = node.next_sibling("include")) { std::string relPath {resolvePlaceholders(node.text().as_string())};