Chenloong999's picture
backup 2026-05-20T03:27:17.780508
31e8457 verified
Raw History Blame Contribute Delete
249 Bytes
import { formatPath } from "../Formatter.ts"
/** @internal */
export function errorWithPath(message: string, path: ReadonlyArray<PropertyKey>) {
if (path.length > 0) {
message += `\n at ${formatPath(path)}`
}
return new Error(message)
}