summaryrefslogtreecommitdiff
path: root/src/pkg/os/inotify/inotify_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/os/inotify/inotify_linux.go')
-rw-r--r--src/pkg/os/inotify/inotify_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/os/inotify/inotify_linux.go b/src/pkg/os/inotify/inotify_linux.go
index 96c229e7b..8b5c30e0d 100644
--- a/src/pkg/os/inotify/inotify_linux.go
+++ b/src/pkg/os/inotify/inotify_linux.go
@@ -109,7 +109,7 @@ func (w *Watcher) AddWatch(path string, flags uint32) os.Error {
}
wd, errno := syscall.InotifyAddWatch(w.fd, path, flags)
if wd == -1 {
- return os.NewSyscallError("inotify_add_watch", errno)
+ return &os.PathError{"inotify_add_watch", path, os.Errno(errno)}
}
if !found {