fix(rosenpass): Fix the error message if the secret key is invalid

This commit is contained in:
David Niehues
2025-07-07 15:32:28 +02:00
committed by Karolin Varner
parent 3e03e47935
commit 4cd2cdfcff

View File

@@ -364,7 +364,7 @@ impl Rosenpass {
// check the secret-key file is a valid key
ensure!(
SSk::load(&keypair.secret_key).is_ok(),
"could not load public-key file {:?}: invalid key",
"could not load secret-key file {:?}: invalid key",
keypair.secret_key
);
}