feat: fix error message
This commit is contained in:
@@ -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_normal_tiny_enc = tag == util::TINY_ENC_MAGIC_TAG;
|
||||||
let is_compressed_tiny_enc = tag == util::TINY_ENC_COMPRESSED_MAGIC_TAG;
|
let is_compressed_tiny_enc = tag == util::TINY_ENC_COMPRESSED_MAGIC_TAG;
|
||||||
if !is_normal_tiny_enc && !is_compressed_tiny_enc {
|
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];
|
let mut length_buff = [0_u8; 4];
|
||||||
|
|||||||
Reference in New Issue
Block a user