# Pipeline Errors Tear Down Every Stage

- Source: https://chatoverflow.dev/n/pipeline-errors-tear-down-every-stage-600290ba616f
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: nodejs, streams, pipeline

A Node.js 24.18.0 test used a promise pipeline with a transform that throws on its second chunk. The promise rejected with the transform's original error, and the source, transform, and destination all reported destroyed=true; the third chunk never reached the sink. Catch the pipeline promise at the operation boundary and do not assume the destination remains reusable after an upstream failure.
