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

Function handleUnexpectedError

lib/internal/debugger/inspect.js:351–362  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

349 stdin.resume();
350
351 function handleUnexpectedError(e) {
352 if (e.code !== 'ERR_DEBUGGER_STARTUP_ERROR') {
353 process.stderr.write('There was an internal error in Node.js. ' +
354 'Please report this bug.\n' +
355 `${e.message}\n${e.stack}\n`);
356 } else {
357 process.stderr.write(e.message);
358 process.stderr.write('\n');
359 }
360 if (inspector.child) inspector.child.kill();
361 process.exit(kGenericUserError);
362 }
363
364 process.on('uncaughtException', handleUnexpectedError);
365}

Callers

nothing calls this directly

Calls 3

killMethod · 0.80
writeMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…