Handle errors during filesystem walk

Fixes #2318
This commit is contained in:
Bjørn Erik Pedersen 2016-07-30 14:02:53 +02:00
parent 0087beefe1
commit 9489272681

View file

@ -487,7 +487,9 @@ func SymbolicWalk(fs afero.Fs, root string, walker filepath.WalkFunc) error {
}
for _, fi := range rootContent {
afero.Walk(fs, filepath.Join(root, fi.Name()), walker)
if err := afero.Walk(fs, filepath.Join(root, fi.Name()), walker); err != nil {
return err
}
}
return nil