MCPcopy
hub / github.com/Effect-TS/effect / getErrorMessage

Function getErrorMessage

packages/effect/src/Schema.ts:4801–4801  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

4799}
4800
4801const getErrorMessage = (e: unknown): string => e instanceof Error ? e.message : String(e)
4802
4803const getParseJsonTransformation = (options?: ParseJsonOptions): SchemaClass<unknown, string> =>
4804 transformOrFail(

Callers 2

URL$Class · 0.70

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected