mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 09:23:09 +00:00
Display detailed error message on static build failure
Fixes: https://todo.sr.ht/~adnano/kiln/29
This commit is contained in:
parent
90aa756156
commit
05fc173260
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