mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00: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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue