mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-11-23 18:51:10 +00:00
Display detailed error message on static build failure
Fixes: https://todo.sr.ht/~adnano/kiln/29
This commit is contained in:
parent
a6daae817c
commit
d1104cc712
2
main.go
2
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
|
||||
|
|
Loading…
Reference in a new issue