Display detailed error message on static build failure

Fixes: https://todo.sr.ht/~adnano/kiln/29
This commit is contained in:
Duncan Bayne 2022-09-24 12:38:52 +10:00 committed by Adnan Maolood
parent 90aa756156
commit 05fc173260

View file

@ -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