better error message

This commit is contained in:
Chris Lu committed 2020-04-29 02:42:06 -07:00
1 parent d57559d3f7
commit f9da859720
1 file changed
+1 -1
+1 -1
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()
}