This commit is contained in:
chrislu 2023-07-06 09:12:28 -07:00
parent ab30f489c3
commit 14546f0ad8

View file

@ -255,7 +255,7 @@ func (v *Volume) readRightNs(m int64) (index int64, offset Offset, ts uint64, er
index++
offset, err = v.readOffsetFromIndex(index)
if err != nil {
err = fmt.Errorf("read entry %d: %v", index, err)
err = fmt.Errorf("read left entry at %d: %v", index, err)
return
}
}
@ -271,7 +271,7 @@ func (v *Volume) readLeftNs(m int64) (index int64, offset Offset, ts uint64, err
index--
offset, err = v.readOffsetFromIndex(index)
if err != nil {
err = fmt.Errorf("read entry %d: %v", index, err)
err = fmt.Errorf("read right entry at %d: %v", index, err)
return
}
}