mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
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:
parent
2d360fda7f
commit
3d20c53904
1 changed files with 8 additions and 0 deletions
|
@ -524,6 +524,14 @@ impl Value {
|
||||||
*value = config.color_config.clone().into_value(span);
|
*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" => {
|
"footer_mode" => {
|
||||||
process_string_enum(
|
process_string_enum(
|
||||||
&mut config.footer_mode,
|
&mut config.footer_mode,
|
||||||
|
|
Loading…
Reference in a new issue