summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Vet <RlndVt@protonmail.com>2024-02-20 21:13:26 +0100
committerRoland Vet <RlndVt@protonmail.com>2024-02-22 21:12:49 +0100
commitb582c9b4b8e695beb9e96acbe3b3dd5305341770 (patch)
tree74ef22fe9214579eb600654438cda56cc1d16874
parenteaf5575080fe512cf5b91a3465e8a8a6e75c2fa9 (diff)
Improve error message
Signed-off-by: Roland Vet <RlndVt@protonmail.com>
-rw-r--r--src/key.rs2
1 files changed, 1 insertions, 1 deletions
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")),
}
}
}