From 97cc3937ee99893e3edbd66f1175ada987a2b3dd Mon Sep 17 00:00:00 2001 From: facundoolano Date: Thu, 7 Mar 2024 12:50:00 -0300 Subject: [PATCH] print build file errors --- site/site.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/site/site.go b/site/site.go index 570b0a7..edcf40b 100644 --- a/site/site.go +++ b/site/site.go @@ -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) }