Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

249 B
Raw Blame
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)
}