mirror of
https://github.com/gitui-org/gitui.git
synced 2026-10-12 02:14:16 +00:00
print theme loading errors into log (#2056)
This commit is contained in:
+7
-1
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user