feat: fix error message

This commit is contained in:
2023-10-12 23:33:06 +08:00
parent 9cae4e987a
commit ce7911819c

View File

@@ -30,7 +30,7 @@ pub fn read_tiny_encrypt_meta<R: Read>(r: &mut R) -> XResult<TinyEncryptMeta> {
let is_normal_tiny_enc = tag == util::TINY_ENC_MAGIC_TAG;
let is_compressed_tiny_enc = tag == util::TINY_ENC_COMPRESSED_MAGIC_TAG;
if !is_normal_tiny_enc && !is_compressed_tiny_enc {
return simple_error!("Tag is not 0x01, but is: 0x{:x}", tag);
return simple_error!("Tag is not 0x01 or 0x02, but is: 0x{:x}", tag);
}
let mut length_buff = [0_u8; 4];