From df0f49470226ecf514137c60ddefd3359cea5726 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Tue, 16 Apr 2024 15:09:12 +0700 Subject: [PATCH] In Extension::try_parse try to give use ful error message --- crates/core/src/bc/de.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/core/src/bc/de.rs b/crates/core/src/bc/de.rs index fe72307..d8da749 100644 --- a/crates/core/src/bc/de.rs +++ b/crates/core/src/bc/de.rs @@ -121,6 +121,7 @@ fn bc_modern_msg<'a>( // Apply the XML parse function, but throw away the reference to decrypted in the Ok and // Err case. This error-error-error thing is the same idiom Nom uses internally. let parsed = Extension::try_parse(processed_ext_buf).map_err(|_| { + log::error!("Extension buffer: {:?}", processed_ext_buf); Err::Error(make_error( buf, "Unable to parse Extension XML",