summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schlachter <t480-debian-git@schlachter.ca>2025-11-10 09:10:41 -0500
committerDavid Schlachter <t480-debian-git@schlachter.ca>2025-11-10 09:10:41 -0500
commit8d47cd773142132e48fab2b04e4b71126d7bb7d5 (patch)
treebdb3e6aa88aabaf0e4e7ab422bc6c98b294cc37f
parent107bf7368d405f68eb1256869850b882c80d6649 (diff)
Improve error message
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 00a319f..bcfca7a 100644
--- a/main.go
+++ b/main.go
@@ -35,7 +35,7 @@ type Task struct {
func (t Task) Run() {
_, err := backoff.Retry(context.Background(), func() (bool, error) { return true, createTask(t.Name) }, backoff.WithBackOff(backoff.NewExponentialBackOff()))
if err != nil {
- log.Printf("Failed to create task: %s", err)
+ log.Printf("Failed to create task '%s': %s", t.Name, err)
}
}