Only show hints about an empty cert store if it is indeed empty.

- Fixes ebef0cf9ee.

  - See #501.
This commit is contained in:
Justus Winter 2024-12-12 13:10:16 +01:00
parent 4df20e9b9a
commit ca3b953bd3
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386

View File

@ -404,7 +404,7 @@ pub fn authenticate<'store, 'rstore>(
.sq().arg("network").arg("search")
.arg(pattern)
.done();
} else {
} else if n.iter_fingerprints().next().is_none() {
weprintln!("The certificate store does not contain any \
certificates.");