Skip to content

T1509: Handle EPIPE errors gracefully in task CLI#60

Open
krandder wants to merge 1 commit into
mainfrom
fix/epipe-task-list
Open

T1509: Handle EPIPE errors gracefully in task CLI#60
krandder wants to merge 1 commit into
mainfrom
fix/epipe-task-list

Conversation

@krandder

Copy link
Copy Markdown
Contributor

Summary

  • Fixes EPIPE error when piping task output to head or similar commands
  • Adds error handler on stdout that exits cleanly (code 0) on EPIPE instead of throwing

Test plan

task list | head -5
echo "Exit code: $?"

Should output first 5 lines and exit with code 0 (no EPIPE error).

When piping task output to head or similar commands, Node.js throws
EPIPE if the pipe closes before all output is written. This fix adds
an error handler on stdout that exits cleanly on EPIPE instead of
throwing an uncaught exception.

Test: task list | head -5 now exits with code 0 instead of EPIPE error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant