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

Function captureUnexpected

packages/plugins/apps/src/plugin/handlers.ts:17–20  ·  view source on GitHub ↗
(
  effect: Effect.Effect<A, E, R>,
)

Source from the content-addressed store, hash-verified

15const ExecutorApiWithApps = addGroup(AppsGroup);
16
17const captureUnexpected = <A, E, R>(
18 effect: Effect.Effect<A, E, R>,
19): Effect.Effect<A, InternalError, R> =>
20 capture(effect.pipe(Effect.catch((cause: unknown) => Effect.die(cause))));
21
22export const AppsBaseHandlers = HttpApiBuilder.group(ExecutorApiWithAppsBase, "apps", (handlers) =>
23 handlers

Callers 1

handlers.tsFile · 0.85

Calls 1

captureFunction · 0.90

Tested by

no test coverage detected