Commit 7c0b7b6bb9
Unregistered key
Layout: unified · split
src/config/theme.rs +9 −3
| @@ -143,9 +143,15 @@ pub fn find_themes(dir: &Path) -> anyhow::Result<Vec<(String, Theme)>> { | |||
| 143 | continue; | 143 | continue; |
| 144 | }; | 144 | }; |
| 145 | 145 | ||
| 146 | let file = ThemeFile::load(&path)?; | 146 | match ThemeFile::load(&path) { |
| 147 | let name = name.to_string_lossy().into_owned(); | 147 | Ok(file) => { |
| 148 | themes.push((name, file.theme)); | 148 | let name = name.to_string_lossy().into_owned(); |
| 149 | themes.push((name, file.theme)); | ||
| 150 | }, | ||
| 151 | Err(err) => { | ||
| 152 | tracing::error!(?err, "failed to load theme file at {}", path.display()); | ||
| 153 | }, | ||
| 154 | }; | ||
| 149 | } | 155 | } |
| 150 | 156 | ||
| 151 | Ok(themes) | 157 | Ok(themes) |