MCPcopy Create free account
hub / github.com/cloudflare/computer / errorMessage

Function errorMessage

packages/computer/src/git/staging.ts:191–194  ·  view source on GitHub ↗
(cause: unknown)

Source from the content-addressed store, hash-verified

189}
190
191function errorMessage(cause: unknown): string {
192 if (cause instanceof Error) return cause.message;
193 return String(cause);
194}

Callers 3

addWithFunction · 0.70
addAllFunction · 0.70
rmWithFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected