aboutsummaryrefslogtreecommitdiffhomepage
path: root/helpers
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2016-07-30 14:02:53 +0200
committerBjørn Erik Pedersen <[email protected]>2016-07-30 14:03:38 +0200
commit94892726816ce0c0af05e10c4706149f4b4baf1c (patch)
tree292d7fcd23ca426ed3ef9e7d364e6db7b36feb7b /helpers
parent0087beefe1ea282efeabe8d3487c55a37a205084 (diff)
downloadhugo-94892726816ce0c0af05e10c4706149f4b4baf1c.tar.gz
hugo-94892726816ce0c0af05e10c4706149f4b4baf1c.zip
Handle errors during filesystem walk
Fixes #2318
Diffstat (limited to 'helpers')
-rw-r--r--helpers/path.go4
1 files changed, 3 insertions, 1 deletions
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