MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / warn

Function warn

packages/hosts/mcp/src/in-memory-session-store.ts:176–182  ·  view source on GitHub ↗
(detail: unknown)

Source from the content-addressed store, hash-verified

174): Promise<void> => {
175 if (!close) return Promise.resolve();
176 const warn = (detail: unknown): Effect.Effect<void> =>
177 Effect.sync(() => {
178 console.warn(
179 `[mcp] failed to close ${handle} for session ${sessionId ?? "<uninitialized>"}:`,
180 formatBoundaryError(detail),
181 );
182 });
183 return Effect.runPromise(
184 Effect.tryPromise({ try: close, catch: (cause) => new McpHandleCloseError({ cause }) }).pipe(
185 Effect.catch((error) => warn(error.cause)),

Callers 1

ignoreCloseFunction · 0.85

Calls 3

warnMethod · 0.80
formatBoundaryErrorFunction · 0.70
syncMethod · 0.65

Tested by

no test coverage detected