Skip to content

Commit ececa07

Browse files
better error messages
1 parent 6e944cf commit ececa07

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

theta/include/bit_packing.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6201,7 +6201,7 @@ static inline void pack_bits_block8(const uint64_t* values, uint8_t* ptr, uint8_
62016201
case 61: pack_bits_61(values, ptr); break;
62026202
case 62: pack_bits_62(values, ptr); break;
62036203
case 63: pack_bits_63(values, ptr); break;
6204-
default: throw std::logic_error("wrong number of bits " + std::to_string(bits));
6204+
default: throw std::logic_error("wrong number of bits in pack_bits_block8: " + std::to_string(bits));
62056205
}
62066206
}
62076207

@@ -6270,7 +6270,7 @@ static inline void unpack_bits_block8(uint64_t* values, const uint8_t* ptr, uint
62706270
case 61: unpack_bits_61(values, ptr); break;
62716271
case 62: unpack_bits_62(values, ptr); break;
62726272
case 63: unpack_bits_63(values, ptr); break;
6273-
default: throw std::logic_error("wrong number of bits " + std::to_string(bits));
6273+
default: throw std::logic_error("wrong number of bits in unpack_bits_block8: " + std::to_string(bits));
62746274
}
62756275
}
62766276

0 commit comments

Comments
 (0)