From 3d9438be7fb975899b8c4c59cf20fcab0af0c46d Mon Sep 17 00:00:00 2001 From: adnano Date: Sat, 24 Sep 2022 11:41:58 -0400 Subject: [PATCH] Show the task for which the error occured --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index ea78975..9a445a0 100644 --- a/main.go +++ b/main.go @@ -55,7 +55,7 @@ func (site *Site) run() error { for _, task := range site.Tasks { err := site.runTask(task) if err != nil { - return err + return fmt.Errorf("task %q: %w", task.Name, err) } } return nil