From 94892726816ce0c0af05e10c4706149f4b4baf1c Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Sat, 30 Jul 2016 14:02:53 +0200 Subject: Handle errors during filesystem walk Fixes #2318 --- helpers/path.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'helpers') diff --git a/helpers/path.go b/helpers/path.go index 5a8694f15..a31f33948 100644 --- a/helpers/path.go +++ b/helpers/path.go @@ -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 -- cgit v1.2.3