Skip to content

Commit 52a988e

Browse files
committed
Merge remote-tracking branch 'origin/experimental' into experimental-alpha
2 parents 5d4517a + 5a17626 commit 52a988e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

common/storage/scrambleNodeStorage.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ func (s *ScrambleCacheStackStorage) GetAll(items interface{}) error {
9393

9494
func (s *ScrambleCacheStackStorage) GetAtIndex(index uint32, item interface{}) error {
9595
if int(index) >= len(s.scrambledNodes) {
96-
return blocker.NewBlocker(blocker.ValidationErr, "IndexOutOfRange")
96+
return blocker.NewBlocker(blocker.ValidationErr,
97+
fmt.Sprintf("IndexOutOfRange-Has %d scramble round - requested index %d",
98+
len(s.scrambledNodes),
99+
index,
100+
))
97101
}
98102
scrambleNodeCopy, ok := item.(*model.ScrambledNodes)
99103
if !ok {

0 commit comments

Comments
 (0)