Perrored
Bun

property

tty.WriteStream.errored

readonly errored: null | Error

Returns error if the stream has been destroyed with an error.