Skip to content

Commit

Permalink
improve failing assert (#16581)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored Apr 19, 2021
1 parent 1e638c1 commit 015bc03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion runtime/src/accounts_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

Expand Down

0 comments on commit 015bc03

Please sign in to comment.