MCPcopy Create free account
hub / github.com/Effect-TS/effect / errorMessage

Function errorMessage

packages/effect/src/graphql/GraphQLProtocol.ts:289–289  ·  view source on GitHub ↗
(cause: unknown)

Source from the content-addressed store, hash-verified

287 Effect.map(readResponse(response), (body) => ({ body, status: response.status, headers: response.headers }))
288
289const errorMessage = (cause: unknown): string => cause instanceof Error ? cause.message : String(cause)
290
291// The graphql-sse distinct-mode events of a `text/event-stream` body. The
292// stream ends on a `complete` event, with or without a `data:` line. A body

Callers 4

sseEventsFunction · 0.85
connectionErrorFunction · 0.85
makeWebSocketFunction · 0.85
handleFunction · 0.85

Calls 1

StringFunction · 0.50

Tested by

no test coverage detected