MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / handleCrash

Function handleCrash

src/daemon.ts:497–502  ·  view source on GitHub ↗
(reason: unknown)

Source from the content-addressed store, hash-verified

495 });
496
497 const handleCrash = (reason: unknown): void => {
498 recordDaemonLifecycleMetric('crash');
499 const message = reason instanceof Error ? reason.message : String(reason);
500 log('error', `[Daemon] Crash: ${message}`, { sentry: true });
501 shutdown(1);
502 };
503
504 process.on('exit', () => {
505 terminateOwnedWorkspaceFilesystemArtifactsSync();

Callers

nothing calls this directly

Calls 3

logFunction · 0.90
shutdownFunction · 0.70

Tested by

no test coverage detected