mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
lib/mergeset: mention in the error message the path to the part, which triggered the error
This should improve debuggability
This commit is contained in:
parent
4e1c12a10d
commit
7a6e5f9224
@ -213,6 +213,9 @@ func (ps *partSearch) NextItem() bool {
|
||||
|
||||
// The current block is over. Proceed to the next block.
|
||||
if err := ps.nextBlock(); err != nil {
|
||||
if err != io.EOF {
|
||||
err = fmt.Errorf("error in %q: %w", ps.p.path, err)
|
||||
}
|
||||
ps.err = err
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user