Skip to content

Commit a2997c9

Browse files
committed
detailed debug
1 parent 9fadb48 commit a2997c9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ pub mod binary {
7171
self.offset += length;
7272
self.buffer[start_index..end_index].to_vec()
7373
} else {
74-
panic!("The specified range is invalid.");
74+
panic!(
75+
"The specified range is invalid. Offset: {}, Length: {}, Buffer size: {}, Trying to read until: {}",
76+
self.offset, length, self.buffer.len(), end_index
77+
);
7578
}
7679
}
7780

0 commit comments

Comments
 (0)