MCPcopy Create free account
hub / github.com/nodejs/node / getWritableError

Function getWritableError

deps/undici/src/lib/api/api-stream.js:11–13  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

9function noop () {}
10
11function getWritableError (stream) {
12 return stream.errored ?? stream.writableErrored ?? stream._writableState?.errored
13}
14
15function createPrematureCloseError () {
16 const err = new Error('Premature close')

Callers 1

onCloseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected