fix: bogus error message wording (#1283)

This commit is contained in:
Caleb Maclennan 2024-05-16 03:51:25 +03:00 committed by GitHub
parent 34265613b8
commit 2e35af1c86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -140,7 +140,7 @@ pub fn decrypt(mut encrypted_history: EncryptedHistory, key: &Key) -> Result<His
&[], &[],
&mut encrypted_history.ciphertext, &mut encrypted_history.ciphertext,
) )
.map_err(|_| eyre!("could not encrypt"))?; .map_err(|_| eyre!("could not decrypt history"))?;
let plaintext = encrypted_history.ciphertext; let plaintext = encrypted_history.ciphertext;
let history = decode(&plaintext)?; let history = decode(&plaintext)?;