improve failing assert (#16581)

This commit is contained in:
Jeff Washington (jwash)
2021-04-19 08:55:01 -05:00
committed by GitHub
parent 1e638c1371
commit 015bc034a5

View File

@ -209,7 +209,12 @@ impl RollingBitField {
self.count == 0
|| (self.max.saturating_sub(key) <= self.max_width as u64
&& key.saturating_sub(self.min) < self.max_width as u64),
"out of range"
"out of range: count: {}, min: {}, max: {}, width: {}, key: {}",
self.count,
self.min,
self.max,
self.max_width,
key
);
}