better error message

This commit is contained in:
Chris Lu 2020-04-29 02:42:06 -07:00
parent d57559d3f7
commit f9da859720

View file

@ -114,7 +114,7 @@ func (f *Filer) ReadPersistedLogBuffer(startTime time.Time, eachLogEntryFn func(
if err == io.EOF {
break
}
return err
return fmt.Errorf("reading %s: %v", hourMinuteEntry.FullPath, err)
}
chunkedFileReader.Close()
}