Show the task for which the error occured

This commit is contained in:
adnano 2022-09-24 11:41:58 -04:00
parent 7b679a2e84
commit 3d9438be7f

View file

@ -55,7 +55,7 @@ func (site *Site) run() error {
for _, task := range site.Tasks { for _, task := range site.Tasks {
err := site.runTask(task) err := site.runTask(task)
if err != nil { if err != nil {
return err return fmt.Errorf("task %q: %w", task.Name, err)
} }
} }
return nil return nil