From 575548122646897573f5cb7a726929c0d83f42f9 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Thu, 15 Apr 2021 13:15:54 -0500 Subject: [PATCH] improve failing assert --- runtime/src/accounts_index.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index a5bcbffd7dc7f1..b6321b4cfd6bc9 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -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 ); }