Skip to content

Commit

Permalink
Merge pull request #4 from windmilleng/nicks/recursive
Browse files Browse the repository at this point in the history
oops, i forgot how to cross-compile properly on windows
  • Loading branch information
nicks committed May 7, 2020
2 parents a66a0f1 + a11f94b commit 249ce51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion fen.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package fsnotify

import (
"errors"
"fmt"
)

// Watcher watches a set of files, delivering events to a channel.
Expand All @@ -25,7 +26,7 @@ func NewWatcher() (*Watcher, error) {
// Must be called before Add/Remove.
// Returns an error on failure.
func (w *Watcher) SetRecursive() error {
return fmt.Error("Not supported")
return fmt.Errorf("Not supported")
}

// Close removes all watches and closes the events channel.
Expand Down
2 changes: 1 addition & 1 deletion inotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (w *Watcher) isClosed() bool {
// Must be called before Add/Remove.
// Returns an error on failure.
func (w *Watcher) SetRecursive() error {
return fmt.Error("Not supported")
return fmt.Errorf("Not supported")
}

// Close removes all watches and closes the events channel.
Expand Down
2 changes: 1 addition & 1 deletion kqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func NewWatcher() (*Watcher, error) {
// Must be called before Add/Remove.
// Returns an error on failure.
func (w *Watcher) SetRecursive() error {
return fmt.Error("Not supported")
return fmt.Errorf("Not supported")
}

// Close removes all watches and closes the events channel.
Expand Down

0 comments on commit 249ce51

Please sign in to comment.