We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d4517a + 5a17626 commit 52a988eCopy full SHA for 52a988e
common/storage/scrambleNodeStorage.go
@@ -93,7 +93,11 @@ func (s *ScrambleCacheStackStorage) GetAll(items interface{}) error {
93
94
func (s *ScrambleCacheStackStorage) GetAtIndex(index uint32, item interface{}) error {
95
if int(index) >= len(s.scrambledNodes) {
96
- return blocker.NewBlocker(blocker.ValidationErr, "IndexOutOfRange")
+ return blocker.NewBlocker(blocker.ValidationErr,
97
+ fmt.Sprintf("IndexOutOfRange-Has %d scramble round - requested index %d",
98
+ len(s.scrambledNodes),
99
+ index,
100
+ ))
101
}
102
scrambleNodeCopy, ok := item.(*model.ScrambledNodes)
103
if !ok {
0 commit comments