MCPcopy Create free account
hub / github.com/code-pushup/cli / uncaughtExceptionHandler

Function uncaughtExceptionHandler

packages/utils/src/lib/exit-process.ts:73–81  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

71 };
72
73 const uncaughtExceptionHandler = (err: unknown) => {
74 onError?.(err, 'uncaughtException');
75 if (exitOnFatal) {
76 close(fatalExitCode, {
77 kind: 'fatal',
78 fatal: 'uncaughtException',
79 });
80 }
81 };
82
83 const unhandledRejectionHandler = (reason: unknown) => {
84 onError?.(reason, 'unhandledRejection');

Callers

nothing calls this directly

Calls 1

closeFunction · 0.85

Tested by

no test coverage detected