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

Function formatReason

packages/effect/src/unstable/http/HttpClientError.ts:80–80  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

78}
79
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})`

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