Commit 7c0b7b6bb9

7c0b7b6bb97e100362065dbb3769cc33133b5d5f

parent: 44e5a48be8

Unregistered key

Ulyssa <git@ulyssa.dev> · 2026-10-17 04:58 UTC
committer: <noreply@github.com>

Skip unparsable themes and log instead of exit (#816)

Layout: unified · split

src/config/theme.rs +9 −3
@@ -143,9 +143,15 @@ pub fn find_themes(dir: &Path) -> anyhow::Result<Vec<(String, Theme)>> {
143143 continue;
144144 };
145145
146 let file = ThemeFile::load(&path)?;
147 let name = name.to_string_lossy().into_owned();
148 themes.push((name, file.theme));
146 match ThemeFile::load(&path) {
147 Ok(file) => {
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 };
149155 }
150156
151157 Ok(themes)