Update error messages in passwordDecrypt (#124)

This commit is contained in:
larabr 2021-07-05 10:42:18 +02:00 committed by GitHub
parent cba6683c62
commit cd4adae9f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View file

@ -18,7 +18,7 @@ func TestAESEncryption(t *testing.T) {
}
_, err = DecryptMessageWithPassword([]byte("Wrong passphrase"), ciphertext)
assert.NotNil(t, err)
assert.Containsf(t, err.Error(), "wrong password", "expected error containing 'wrong password', got %s", err)
decrypted, err := DecryptMessageWithPassword(passphrase, ciphertext)
if err != nil {