From ce7911819c526c348b98bbea0833ac72f5e7c6da Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Thu, 12 Oct 2023 23:33:06 +0800 Subject: [PATCH] feat: fix error message --- src/file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.rs b/src/file.rs index 50fe523..086da61 100644 --- a/src/file.rs +++ b/src/file.rs @@ -30,7 +30,7 @@ pub fn read_tiny_encrypt_meta(r: &mut R) -> XResult { 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];