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

Function causePretty

packages/effect/src/internal/effect.ts:469–470  ·  view source on GitHub ↗
(cause: Cause.Cause<E>)

Source from the content-addressed store, hash-verified

467
468/** @internal */
469export const causePretty = <E>(cause: Cause.Cause<E>): string =>
470 causePrettyErrors<E>(cause).map(renderPrettyError).join("\n")
471
472const renderPrettyError = (e: Error): string | undefined =>
473 e.cause ? `${e.stack} {\n${renderErrorCause(e.cause as Error, " ")}\n}` : e.stack

Callers 1

effect.tsFile · 0.85

Calls 3

causePrettyErrorsFunction · 0.85
joinMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected