Skip to content

Commit

Permalink
Use better error message for missing private key
Browse files Browse the repository at this point in the history
  • Loading branch information
patowen authored and Ralith committed Jun 20, 2022
1 parent bc41e3a commit 2da2010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub fn run() -> Result<()> {
.into_iter()
.map(rustls::PrivateKey)
.next()
.ok_or_else(|| anyhow!("No private keys found"))?,
.ok_or_else(|| anyhow!("no private key found with PKCS #8 format"))?,
),
_ => {
// TODO: Cache on disk
Expand Down

0 comments on commit 2da2010

Please sign in to comment.