fix: Task failure errors include stack of running tasks. by GrahamDennis · Pull Request #2286 · go-task/task

added 2 commits

June 8, 2025 16:21
Previously if a task was run as a dependency of another task,
the error message simply reported something like:

```
exit status 1
```

It is desirable instead to name the root task and all child tasks in the tree
to the failing task.

After this PR, the error message will read:

```
task: Failed to run task "root": task: Failed to run task "failing-task": exit status 1
```

@GrahamDennis

andreynering

Copilot AI pushed a commit to libor-m/task that referenced this pull request

Mar 27, 2026
…#2286)

Previously if a task was run as a dependency of another task,
the error message simply reported something like:

    exit status 1

It is desirable instead to name the root task and all child tasks in the tree
to the failing task.

After this PR, the error message will read:

    task: Failed to run task "root": task: Failed to run task "failing-task": exit status 1
Co-authored-by: libor-m <1497769+libor-m@users.noreply.github.com>

Copilot AI pushed a commit to libor-m/task that referenced this pull request

Mar 27, 2026
Co-authored-by: libor-m <1497769+libor-m@users.noreply.github.com>