Unnamed repository; edit this file 'description' to name the repository.
theme: Include key names in style parsing warnings
This should make it easier to figure out why the theme-check CI job
fails. Previously the message didn't include the failing key so you
were left searching or guessing where the error occurred.
| -rw-r--r-- | helix-view/src/theme.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/theme.rs b/helix-view/src/theme.rs index 9dc32644..fca47413 100644 --- a/helix-view/src/theme.rs +++ b/helix-view/src/theme.rs @@ -280,7 +280,7 @@ fn build_theme_values( for (name, style_value) in values { let mut style = Style::default(); if let Err(err) = palette.parse_style(&mut style, style_value) { - warnings.push(err); + warnings.push(format!("Failed to parse style for key {name:?}. {err}")); } // these are used both as UI and as highlights |