From d1104cc71234a2a9db49b828efdb3980989b1125 Mon Sep 17 00:00:00 2001 From: Duncan Bayne Date: Sat, 24 Sep 2022 12:38:52 +1000 Subject: [PATCH] Display detailed error message on static build failure Fixes: https://todo.sr.ht/~adnano/kiln/29 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d0e23df..b3525a0 100644 --- a/main.go +++ b/main.go @@ -81,7 +81,7 @@ func (s *Site) runTask(task *Task) error { err := copyAll(task.StaticDir, task.OutputDir) if err != nil { if os.IsNotExist(err) { - log.Printf("static_dir '%s' does not exist\n", task.StaticDir) + log.Printf("error building static_dir '%s': %s\n", task.StaticDir, err) return nil } return err