From 0f6b9b01174151da18ce1d91951a07b30cb1e70a Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Tue, 18 Feb 2025 21:45:26 -0300 Subject: [PATCH] fix: better error message when loading a XML theme --- src/styles.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/styles.cr b/src/styles.cr index d2c49f6..6b77d43 100644 --- a/src/styles.cr +++ b/src/styles.cr @@ -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