MCPcopy Create free account
hub / github.com/electric-sql/electric / formatSourceError

Function formatSourceError

packages/agents-runtime/src/context-assembly.ts:127–132  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

125}
126
127function formatSourceError(error: unknown): string {
128 if (error instanceof Error) {
129 return error.message
130 }
131 return String(error)
132}
133
134function minMax(values: Array<number>): { min: number; max: number } | null {
135 if (values.length === 0) {

Callers 1

loadSourceContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected