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

translateDefinitionFunction · 0.90
resolveReferenceFunction · 0.90
importPatternChecksFunction · 0.90
compileDefinitionFunction · 0.90
onFunction · 0.90
getParameterPatternsFunction · 0.90
getPartPatternFunction · 0.90
baseFunction · 0.90
compileCheckFunction · 0.90
recurFunction · 0.90
onFunction · 0.90
makeReviverMapFunction · 0.90

Calls 1

formatPathFunction · 0.90

Tested by

no test coverage detected