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

Function errorMessage

packages/computer/src/git/commit.ts:158–161  ·  view source on GitHub ↗
(cause: unknown)

Source from the content-addressed store, hash-verified

156}
157
158function errorMessage(cause: unknown): string {
159 if (cause instanceof Error) return cause.message;
160 return String(cause);
161}

Callers 1

commitWithFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected