소스 검색

bin/dao: minor fix based on recent change in src/error.rs

Dastan-glitch 3 년 전
부모
커밋
50f6428257
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bin/dao/daod/src/note.rs

+ 1 - 1
bin/dao/daod/src/note.rs

@@ -47,7 +47,7 @@ impl EncryptedNote2 {
         assert_eq!(
             ChachaPolyIetf::aead_cipher()
                 .open_to(&mut plaintext, &self.ciphertext, &[], key.as_ref(), &[0u8; 12])
-                .map_err(|_| Error::NoteDecryptionFailed)?,
+                .map_err(|e| Error::NoteDecryptionFailed(e.to_string()))?,
             self.ciphertext.len() - AEAD_TAG_SIZE
         );