MCPcopy
hub / github.com/CopilotKit/CopilotKit / catch

Function catch

showcase/harness/src/orchestrator.ts:2707–2724  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

2705 const state = await statusReader.getStateByKey(aggregateKey);
2706 return asKnownState(state) ?? null;
2707 } catch (err) {
2708 logger.warn("fleet.control-plane.prior-state-lookup-failed", {
2709 aggregateKey,
2710 err: err instanceof Error ? err.message : String(err),
2711 });
2712 // CVDIAG: the prior-colour lookup threw → the comm-error overlay falls
2713 // back to no-data instead of preserving a previously-RED service. Surface
2714 // the swallowed read so a stomped colour is diagnosable.
2715 console.log(
2716 formatCvdiag({
2717 component: "harness-orchestrator:prior-state-lookup-failed",
2718 boundary: "inbound",
2719 status: "error",
2720 error: `key=${aggregateKey} ${err instanceof Error ? err.message : String(err)}`,
2721 }),
2722 );
2723 return null;
2724 }
2725 };
2726 const aggregator = createResultAggregator({
2727 statusWriter,

Callers 1

ifFunction · 0.85

Calls 2

formatCvdiagFunction · 0.85
warnMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…