mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-11-23 10:45:13 +00:00
Show the task for which the error occured
This commit is contained in:
parent
7b679a2e84
commit
3d9438be7f
2
main.go
2
main.go
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue