Improve error message

Signed-off-by: Roland Vet <RlndVt@protonmail.com>
This commit is contained in:
Roland Vet 2024-02-20 21:13:26 +01:00
parent eaf5575080
commit b582c9b4b8

View File

@ -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")),
}
}
}