Skip to content

Commit c73b63e

Browse files
committed
Give BitsIter panic message more information
1 parent 4502f5c commit c73b63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrow/src/util/bit_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl<'a> BitsIter<'a> {
118118
pub fn new(bytes: &'a [u8], offset: usize, len: usize) -> BitsIter<'a> {
119119
let end_offset = offset + len;
120120
if end_offset < offset || end_offset.div_ceil(8) > bytes.len() {
121-
panic!("BitsIter::new called with invalid offset or len");
121+
panic!("BitsIter::new called with invalid offset or len. offset: {}, len: {}, bytes.len(): {}", offset, len, bytes.len());
122122
}
123123
BitsIter {
124124
bytes,

0 commit comments

Comments
 (0)