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

Function formatMessage

packages/effect/src/unstable/http/HttpClientError.ts:82–83  ·  view source on GitHub ↗
(reason: string, description: string | undefined, info: string)

Source from the content-addressed store, hash-verified

80const formatReason = (tag: string) => tag.endsWith("Error") ? tag.slice(0, -5) : tag
81
82const formatMessage = (reason: string, description: string | undefined, info: string) =>
83 description ? `${reason}: ${description} (${info})` : `${reason} error (${info})`
84
85/**
86 * Error describing transport-level failures that occur while sending an HTTP request.

Callers 6

messageMethod · 0.85
messageMethod · 0.85
messageMethod · 0.85
messageMethod · 0.85
messageMethod · 0.85
messageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected