mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
print theme loading errors into log (#2056)
This commit is contained in:
parent
acf4661c1e
commit
be10d9096a
1 changed files with 7 additions and 1 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue