From 777cb8b2a3e8e2f0b9b0192731867c22440a089e Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 19 Jun 2025 16:07:39 -0400 Subject: [PATCH] When failing to parse a packet segment, print it's size This can be helpful to determine what the heck this opcode is. --- src/packet/parsing.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/packet/parsing.rs b/src/packet/parsing.rs index 1c396bf..bbece7a 100644 --- a/src/packet/parsing.rs +++ b/src/packet/parsing.rs @@ -132,6 +132,7 @@ pub struct PacketSegment { #[brw(pad_after = 2)] // padding pub segment_type: SegmentType, #[brw(args(&segment_type, size, encryption_key))] + #[br(err_context("segment size = {}", size))] pub data: SegmentData, }