aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/rjeczalik/notify/node.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/rjeczalik/notify/node.go')
-rw-r--r--vendor/github.com/rjeczalik/notify/node.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/vendor/github.com/rjeczalik/notify/node.go b/vendor/github.com/rjeczalik/notify/node.go
index 29c1bb20a..aced8b9c4 100644
--- a/vendor/github.com/rjeczalik/notify/node.go
+++ b/vendor/github.com/rjeczalik/notify/node.go
@@ -6,7 +6,6 @@ package notify
import (
"errors"
- "fmt"
"io/ioutil"
"os"
"path/filepath"
@@ -71,7 +70,11 @@ Traverse:
case errSkip:
continue Traverse
default:
- return fmt.Errorf("error while traversing %q: %v", nd.Name, err)
+ return &os.PathError{
+ Op: "error while traversing",
+ Path: nd.Name,
+ Err: err,
+ }
}
// TODO(rjeczalik): tolerate open failures - add failed names to
// AddDirError and notify users which names are not added to the tree.