FisErrored
Bun

function

stream.default.isErrored

function isErrored(
stream: Writable | Readable | ReadableStream | WritableStream
): boolean;

Returns whether the stream has encountered an error.