Skip to content

Commit

Permalink
In Extension::try_parse try to give use ful error message
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEntangledAndy committed Apr 16, 2024
1 parent 4bfc73c commit df0f494
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/core/src/bc/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit df0f494

Please sign in to comment.