print theme loading errors into log (#2056)

This commit is contained in:
extrawurst 2024-02-19 12:52:17 +01:00
parent acf4661c1e
commit be10d9096a

View file

@ -274,7 +274,13 @@ impl Theme {
fn load_patch(theme_path: &PathBuf) -> Result<ThemePatch> {
let file = File::open(theme_path)?;
Ok(ron::de::from_reader(file)?)
let load_result = ron::de::from_reader(file);
if let Err(e) = &load_result {
log::error!("theme loading error: {e}");
}
Ok(load_result?)
}
fn load_old_theme(theme_path: &PathBuf) -> Result<Self> {