"github.com/gohugoio/hugo/hugofs/files"
"github.com/gohugoio/hugo/tpl"
+ "github.com/gohugoio/hugo/common/herrors"
"github.com/gohugoio/hugo/common/htime"
"github.com/gohugoio/hugo/common/types"
}
func (c *commandeer) rebuildSites(events []fsnotify.Event) error {
+ if c.buildErr != nil {
+ ferrs := herrors.UnwrapFileErrorsWithErrorContext(c.buildErr)
+ for _, err := range ferrs {
+ events = append(events, fsnotify.Event{Name: err.Position().Filename, Op: fsnotify.Write})
+ }
+ }
c.buildErr = nil
visited := c.visitedURLs.PeekAllSet()
if c.fastRenderMode {