mirror of
https://github.com/helix-editor/helix.git
synced 2024-12-18 14:01:55 +04:00
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.
This commit is contained in:
parent
7a2afdc080
commit
07e7e7534d
@ -280,7 +280,7 @@ fn build_theme_values(
|
|||||||
for (name, style_value) in values {
|
for (name, style_value) in values {
|
||||||
let mut style = Style::default();
|
let mut style = Style::default();
|
||||||
if let Err(err) = palette.parse_style(&mut style, style_value) {
|
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
|
// these are used both as UI and as highlights
|
||||||
|
Loading…
Reference in New Issue
Block a user