mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-02 00:00:03 +03:00
Improve error message
Signed-off-by: Roland Vet <RlndVt@protonmail.com>
This commit is contained in:
parent
eaf5575080
commit
b582c9b4b8
@ -22,7 +22,7 @@ impl std::str::FromStr for KeyPolicy {
|
|||||||
"fail" => Ok(KeyPolicy::Fail),
|
"fail" => Ok(KeyPolicy::Fail),
|
||||||
"wait" => Ok(KeyPolicy::Wait),
|
"wait" => Ok(KeyPolicy::Wait),
|
||||||
"ask" => Ok(KeyPolicy::Ask),
|
"ask" => Ok(KeyPolicy::Ask),
|
||||||
_ => Err(anyhow!("invalid password option")),
|
_ => Err(anyhow!("Invalid key policy provided")),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user