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

Function unhandledRejectionHandler

packages/utils/src/lib/exit-process.ts:83–91  ·  view source on GitHub ↗
(reason: unknown)

Source from the content-addressed store, hash-verified

81 };
82
83 const unhandledRejectionHandler = (reason: unknown) => {
84 onError?.(reason, 'unhandledRejection');
85 if (exitOnFatal) {
86 close(fatalExitCode, {
87 kind: 'fatal',
88 fatal: 'unhandledRejection',
89 });
90 }
91 };
92
93 const signalHandlers = (['SIGINT', 'SIGTERM', 'SIGQUIT'] as const).map(
94 signal => {

Callers

nothing calls this directly

Calls 1

closeFunction · 0.85

Tested by

no test coverage detected