Perrored
Bun

property

tty.ReadStream.errored

readonly errored: null | Error

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