Without this fix, any error during rereading would cause Hugo to hang.
Fixes #2168
Closes #2179
}
file, err := s.reReadFile(ev.Name)
+
if err != nil {
- errs <- err
+ jww.ERROR.Println("Error reading file", ev.Name, ";", err)
+ }
+
+ if file != nil {
+ filechan <- file
}
- filechan <- file
}
// we close the filechan as we have sent everything we want to send to it.
// this will tell the sourceReaders to stop iterating on that channel
return nil
}
- return err
+ return err
}
func (s *Site) Analyze() error {
if err != nil {
return nil, err
}
-
file, err = source.NewFileFromAbs(s.absContentDir(), absFilePath, reader)
if err != nil {