MCPcopy Create free account
hub / github.com/pillarjs/multiparty / handleError

Function handleError

index.js:215–231  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

213 }
214
215 function handleError(err) {
216 var first = !self.error;
217 if (first) {
218 self.error = err;
219 req.removeListener('aborted', onReqAborted);
220 req.removeListener('end', onReqEnd);
221 if (self.destStream) {
222 errorEventQueue(self, self.destStream, err);
223 }
224 }
225
226 cleanupOpenFiles(self);
227
228 if (first) {
229 self.emit('error', err);
230 }
231 }
232
233 function validationError(err) {
234 // handle error on next tick for event listeners to attach

Callers 2

index.jsFile · 0.85
onReqAbortedFunction · 0.85

Calls 2

errorEventQueueFunction · 0.85
cleanupOpenFilesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…