MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / ownMessage

Function ownMessage

apps/cli/src/main.ts:1577–1584  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

1575 );
1576
1577const ownMessage = (value: unknown): string => {
1578 if (typeof value === "string") return value.trim();
1579 if (typeof value === "object" && value !== null && "message" in value) {
1580 const message = (value as { message: unknown }).message;
1581 if (typeof message === "string") return message.trim();
1582 }
1583 return "";
1584};
1585
1586/**
1587 * Render an unknown failure by walking its `cause` chain. Wrapper errors

Callers 1

formatUnknownMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected