MCPcopy Create free account
hub / github.com/effect-app/libs / errorWithPath

Function errorWithPath

repos/effect/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 2

recurFunction · 0.90
baseFunction · 0.90

Calls 1

formatPathFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…