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

Function warn

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

Source from the content-addressed store, hash-verified

184): Promise<void> => {
185 if (!close) return Promise.resolve();
186 const warn = (detail: unknown): Effect.Effect<void> =>
187 Effect.sync(() => {
188 console.warn(
189 `[mcp] failed to close ${handle} for session ${sessionId ?? "<uninitialized>"}:`,
190 formatBoundaryError(detail),
191 );
192 });
193 return Effect.runPromise(
194 Effect.tryPromise({ try: close, catch: (cause) => new McpHandleCloseError({ cause }) }).pipe(
195 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