]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: expand error message
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 13 Feb 2022 11:11:52 +0000 (12:11 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 15 Feb 2022 09:26:58 +0000 (10:26 +0100)
src/systemctl/systemctl-show.c

index 37c898f31318990679c29577ed2359771bf0a2e1..0985a452ec3745eec4eeb5d1e9e440ce49adebf2 100644 (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),