~adnano/kiln

05fc173260e5dec7adc64f9f6113d1724be3a9d1 — Duncan Bayne 2 months ago 90aa756
Display detailed error message on static build failure

Fixes: https://todo.sr.ht/~adnano/kiln/29
1 files changed, 1 insertions(+), 1 deletions(-)

M main.go
M main.go => main.go +1 -1
@@ 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