Perrored
Bun

property

stream.default.Writable.errored

readonly errored: null | Error

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