mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
systemctl: also highlight a load state of "not-found" as red
"not-found" is a recently added load state and was previously just a special case of "error". Since it also indicates a load error we should also highlight it red, the same way as "error" was treated before.
This commit is contained in:
parent
2042249710
commit
2ce982f9b1
@ -381,7 +381,8 @@ static void output_units_list(const struct unit_info *unit_infos, unsigned c) {
|
||||
|
||||
n_shown++;
|
||||
|
||||
if (streq(u->load_state, "error")) {
|
||||
if (streq(u->load_state, "error") ||
|
||||
streq(u->load_state, "not-found")) {
|
||||
on_loaded = on = ansi_highlight_red(true);
|
||||
off_loaded = off = ansi_highlight_red(false);
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user