systemctl: expand error message

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-02-15 10:26:58 +01:00
parent d33575eb4a
commit 71fae19e3f
+1 -1
View File
@@ -2142,7 +2142,7 @@ int show(int argc, char *argv[], void *userdata) {
show_mode = systemctl_show_mode_from_string(argv[0]);
if (show_mode < 0)
return log_error_errno(show_mode, "Invalid argument.");
return log_error_errno(show_mode, "Invalid argument '%s'.", argv[0]);
if (show_mode == SYSTEMCTL_SHOW_HELP && argc <= 1)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),