If a backend has no devices, hence no keys, it should say no keys.

- Fixes #313.
This commit is contained in:
Justus Winter 2024-09-02 11:56:56 +02:00
parent bbfdebfd73
commit 887f42193e
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386

View File

@ -23,7 +23,7 @@ pub fn list(sq: Sq, _command: cli::key::ListCommand) -> Result<()> {
for backend in &mut backends {
let devices = backend.list()?;
if devices.len() == 0 {
println!(" - Backend {} has no devices.", backend.id()?);
println!(" - Backend {} has no keys.", backend.id()?);
} else {
println!(" - {}", backend.id()?);
}