MCPcopy Index your code
hub / github.com/nodejs/undici / checkError

Function checkError

test/node-test/client-errors.js:699–707  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

697 t.after(client.destroy.bind(client))
698
699 function checkError (err) {
700 // Different platforms error with different codes...
701 p.ok(
702 err.code === 'EPIPE' ||
703 err.code === 'ECONNRESET' ||
704 err.code === 'UND_ERR_SOCKET' ||
705 err.message === 'other side closed'
706 )
707 }
708
709 {
710 const body = new Readable({ read () {} })

Callers 1

client-errors.jsFile · 0.85

Calls 1

okMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…