Blame SOURCES/cryptsetup-2.0.4-rephrase-error-message-for-invalid-type-param-in-con.patch

8af939
From b60e856087db77abbc5aa62a7f980e62b8b75029 Mon Sep 17 00:00:00 2001
8af939
From: Ondrej Kozina <okozina@redhat.com>
8af939
Date: Tue, 17 Jul 2018 10:53:13 +0200
8af939
Subject: [PATCH] Rephrase error message for invalid --type param in convert.
8af939
8af939
---
8af939
 src/cryptsetup.c | 2 +-
8af939
 1 file changed, 1 insertion(+), 1 deletion(-)
8af939
8af939
diff --git a/src/cryptsetup.c b/src/cryptsetup.c
8af939
index fc3481d..5f8df37 100644
8af939
--- a/src/cryptsetup.c
8af939
+++ b/src/cryptsetup.c
8af939
@@ -1851,7 +1851,7 @@ static int action_luksConvert(void)
8af939
 	} else if (!strcmp(opt_type, "luks1")) {
8af939
 		to_type = CRYPT_LUKS1;
8af939
 	} else {
8af939
-		log_err(_("Missing LUKS target type, option --type is required."));
8af939
+		log_err(_("Invalid LUKS type, only luks1 and luks2 are supported."));
8af939
 		return -EINVAL;
8af939
 	}
8af939
 
8af939
-- 
8af939
1.8.3.1
8af939