aboutsummaryrefslogtreecommitdiff
path: root/src/os/dir_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/dir_unix.go')
-rw-r--r--src/os/dir_unix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/dir_unix.go b/src/os/dir_unix.go
index e0c4989756..58ec406ab8 100644
--- a/src/os/dir_unix.go
+++ b/src/os/dir_unix.go
@@ -50,7 +50,7 @@ func (f *File) readdirnames(n int) (names []string, err error) {
d.nbuf, errno = f.pfd.ReadDirent(d.buf)
runtime.KeepAlive(f)
if errno != nil {
- return names, wrapSyscallError("readdirent", errno)
+ return names, &PathError{"readdirent", f.name, errno}
}
if d.nbuf <= 0 {
break // EOF