fix: better error message when loading a XML theme

This commit is contained in:
Roberto Alsina 2025-02-18 21:45:26 -03:00
parent b81e9c4405
commit 0f6b9b0117

@ -35,8 +35,8 @@ module Tartrazine
end
begin
Theme.from_xml(ThemeFiles.get("/#{name}.xml").gets_to_end)
rescue
raise Exception.new("Theme #{name} not found")
rescue ex ; Exception
raise Exception.new("Error loading theme #{name}: #{ex.message}")
end
end