]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: fix two error strings
authorLennart Poettering <lennart@poettering.net>
Fri, 16 Sep 2022 16:08:19 +0000 (18:08 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 16 Sep 2022 20:15:02 +0000 (05:15 +0900)
src/nspawn/nspawn.c

index 44e5c509a80960347a2f26df028f308f8a7b10d2..2834a7fc8aa0aa99bd91aa1f27c42640c34ac318 100644 (file)
@@ -1627,9 +1627,9 @@ static int parse_argv(int argc, char *argv[]) {
                         if (r == -ENOMEM)
                                 return log_oom();
                         if (r < 0)
-                                return log_error_errno(r, "Failed to parse --set-credential= parameter: %m");
+                                return log_error_errno(r, "Failed to parse --load-credential= parameter: %m");
                         if (r == 0 || !p)
-                                return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Missing value for --set-credential=: %s", optarg);
+                                return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Missing value for --load-credential=: %s", optarg);
 
                         if (!credential_name_valid(word))
                                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Credential name is not valid: %s", word);