Browse Source

Check for error in directory walker (ref #308)

Jakob Borg 11 years ago
parent
commit
f7a25adcbd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      model/puller.go

+ 4 - 0
model/puller.go

@@ -220,6 +220,10 @@ func (p *puller) fixupDirectories() {
 	var changed = 0
 
 	var walkFn = func(path string, info os.FileInfo, err error) error {
+		if err != nil {
+			return err
+		}
+
 		if !info.IsDir() {
 			return nil
 		}