mirror of https://github.com/perkeep/perkeep.git
Merge "DirReader.Readdir incorrectly logs the contents of err where it should really log the contents of res.err"
This commit is contained in:
commit
54b1925847
|
@ -156,7 +156,7 @@ func (dr *DirReader) Readdir(n int) (entries []DirectoryEntry, err error) {
|
|||
for _, c := range cs {
|
||||
res := <-c
|
||||
if res.err != nil {
|
||||
return nil, fmt.Errorf("schema/dirreader: can't create dirEntry: %v", err)
|
||||
return nil, fmt.Errorf("schema/dirreader: can't create dirEntry: %v", res.err)
|
||||
}
|
||||
entries = append(entries, res.ent)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue