Skip to content

Commit be10d90

Browse files
committed
print theme loading errors into log (#2056)
1 parent acf4661 commit be10d90

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: src/ui/style.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,13 @@ impl Theme {
274274
fn load_patch(theme_path: &PathBuf) -> Result<ThemePatch> {
275275
let file = File::open(theme_path)?;
276276

277-
Ok(ron::de::from_reader(file)?)
277+
let load_result = ron::de::from_reader(file);
278+
279+
if let Err(e) = &load_result {
280+
log::error!("theme loading error: {e}");
281+
}
282+
283+
Ok(load_result?)
278284
}
279285

280286
fn load_old_theme(theme_path: &PathBuf) -> Result<Self> {

0 commit comments

Comments
 (0)