1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-11-23 00:32:07 +01:00

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 adnano
parent a6daae817c
commit d1104cc712

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