diff options
author | extrawurst <mail@rusticorn.com> | 2024-02-19 12:52:17 +0100 |
---|---|---|
committer | extrawurst <mail@rusticorn.com> | 2024-02-19 12:52:17 +0100 |
commit | be10d9096a93b030ec3f1ab776a21225d974e272 (patch) | |
tree | 4db6aae2f8e981b1872b86231447ae904d7bc0df /src | |
parent | acf4661c1eaade2b0f656d50682cfc897f68bb94 (diff) |
print theme loading errors into log (#2056)
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/style.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ui/style.rs b/src/ui/style.rs index 0ae9caeb..b3ba1b91 100644 --- a/src/ui/style.rs +++ b/src/ui/style.rs @@ -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> { |