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

Function errorMessage

packages/computer/src/git/worktree.ts:325–328  ·  view source on GitHub ↗
(cause: unknown)

Source from the content-addressed store, hash-verified

323}
324
325function errorMessage(cause: unknown): string {
326 if (cause instanceof Error) return cause.message;
327 return String(cause);
328}

Callers 5

stashPushWithFunction · 0.70
stashListWithFunction · 0.70
stashPopWithFunction · 0.70
resetWithFunction · 0.70
cleanWithFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected