print build file errors

This commit is contained in:
facundoolano 2024-03-07 12:50:00 -03:00
parent 2109d19c19
commit 97cc3937ee

View file

@ -280,7 +280,10 @@ func spawnBuildWorkers(site *site) (*sync.WaitGroup, chan string) {
go func(files <-chan string) {
defer wg.Done()
for path := range files {
site.buildFile(path)
err := site.buildFile(path)
if err != nil {
fmt.Printf("error in %s: %s\n", path, err)
}
}
}(files)
}