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

Function errorWithPath

packages/effect/src/internal/errors.ts:4–9  ·  view source on GitHub ↗
(message: string, path: ReadonlyArray<PropertyKey>)

Source from the content-addressed store, hash-verified

2
3/** @internal */
4export function errorWithPath(message: string, path: ReadonlyArray<PropertyKey>) {
5 if (path.length > 0) {
6 message += `\n at ${formatPath(path)}`
7 }
8 return new Error(message)
9}

Callers 15

makeJsonLiteralFunction · 0.90
finalizeFunction · 0.90
translateDefinitionFunction · 0.90
validatePointerAliasesFunction · 0.90
resolveReferenceFunction · 0.90
resolvePointerFunction · 0.90
lowerObjectFunction · 0.90
unsupportedIntersectionFunction · 0.90
intersectFunction · 0.90
translateSchemaFunction · 0.90
importPatternCheckFunction · 0.90
compileCallbackFunction · 0.90

Calls 1

formatPathFunction · 0.90

Tested by

no test coverage detected