Skip to content

Commit

Permalink
Give BitsIter panic message more information
Browse files Browse the repository at this point in the history
  • Loading branch information
srh committed Nov 26, 2024
1 parent 4502f5c commit c73b63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow/src/util/bit_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl<'a> BitsIter<'a> {
pub fn new(bytes: &'a [u8], offset: usize, len: usize) -> BitsIter<'a> {
let end_offset = offset + len;
if end_offset < offset || end_offset.div_ceil(8) > bytes.len() {
panic!("BitsIter::new called with invalid offset or len");
panic!("BitsIter::new called with invalid offset or len. offset: {}, len: {}, bytes.len(): {}", offset, len, bytes.len());
}
BitsIter {
bytes,
Expand Down

0 comments on commit c73b63e

Please sign in to comment.