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

Function formatReason

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

Source from the content-addressed store, hash-verified

94}
95
96const formatReason = (tag: string) => tag.endsWith("Error") ? tag.slice(0, -5) : tag
97
98const formatMessage = (reason: string, description: string | undefined, info: string) =>
99 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 1

sliceMethod · 0.80

Tested by

no test coverage detected