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

Function errorMessage

packages/computer/src/git/init.ts:77–80  ·  view source on GitHub ↗
(cause: unknown)

Source from the content-addressed store, hash-verified

75}
76
77function errorMessage(cause: unknown): string {
78 if (cause instanceof Error) return cause.message;
79 return String(cause);
80}

Callers 1

initWithFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected