(value: unknown)
| 1575 | ); |
| 1576 | |
| 1577 | const 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 |
no outgoing calls
no test coverage detected