make a user friendly message when use_grid_icons is used in config (#13795)

# Description
After merging #13788, I get an error message which says that
`use_grid_icons` is invalid.

I think it's good to report the specific error, and guide user to delete
it.
This commit is contained in:
Wind 2024-09-06 19:39:52 +08:00 committed by GitHub
parent 2d360fda7f
commit 3d20c53904
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -524,6 +524,14 @@ impl Value {
*value = config.color_config.clone().into_value(span);
}
}
"use_grid_icons" => {
// TODO: delete it after 0.99
report_invalid_value(
"`use_grid_icons` is deleted, you should delete the key, and use `grid -i` in such case.",
span,
&mut errors
);
}
"footer_mode" => {
process_string_enum(
&mut config.footer_mode,