From b582c9b4b8e695beb9e96acbe3b3dd5305341770 Mon Sep 17 00:00:00 2001 From: Roland Vet Date: Tue, 20 Feb 2024 21:13:26 +0100 Subject: [PATCH] Improve error message Signed-off-by: Roland Vet --- src/key.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/key.rs b/src/key.rs index 6215c7bb..c432ca79 100644 --- a/src/key.rs +++ b/src/key.rs @@ -22,7 +22,7 @@ impl std::str::FromStr for KeyPolicy { "fail" => Ok(KeyPolicy::Fail), "wait" => Ok(KeyPolicy::Wait), "ask" => Ok(KeyPolicy::Ask), - _ => Err(anyhow!("invalid password option")), + _ => Err(anyhow!("Invalid key policy provided")), } } }