1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-05 13:18:06 +03:00

systemctl: fix error messages (#5389)

This commit is contained in:
Lucas Werkmeister 2017-02-19 18:03:15 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 8dfc2f40bf
commit 6862111ecf

View File

@ -7540,7 +7540,7 @@ static int systemctl_parse_argv(int argc, char *argv[]) {
case ARG_STATE: {
if (isempty(optarg)) {
log_error("--signal requires arguments.");
log_error("--state requires arguments.");
return -EINVAL;
}
@ -7549,7 +7549,7 @@ static int systemctl_parse_argv(int argc, char *argv[]) {
r = extract_first_word(&p, &s, ",", 0);
if (r < 0)
return log_error_errno(r, "Failed to parse signal: %s", optarg);
return log_error_errno(r, "Failed to parse state: %s", optarg);
if (r == 0)
break;