Merge "DirReader.Readdir incorrectly logs the contents of err where it should really log the contents of res.err"

This commit is contained in:
Brad Fitzpatrick 2014-11-24 18:36:16 +00:00 committed by Gerrit Code Review
commit 54b1925847
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}