MCPcopy Index your code
hub / github.com/nodejs/node / prepareError

Function prepareError

lib/_http_common.js:301–305  ·  view source on GitHub ↗
(err, parser, rawPacket)

Source from the content-addressed store, hash-verified

299}
300
301function prepareError(err, parser, rawPacket) {
302 err.rawPacket = rawPacket || parser.getCurrentBuffer();
303 if (typeof err.reason === 'string')
304 err.message = `Parse Error: ${err.reason}`;
305}
306
307let warnedLenient = false;
308

Callers 2

socketOnDataFunction · 0.85
onParserExecuteCommonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…