(value: unknown)
| 1585 | ); |
| 1586 | |
| 1587 | const ownMessage = (value: unknown): string => { |
| 1588 | if (typeof value === "string") return value.trim(); |
| 1589 | if (typeof value === "object" && value !== null && "message" in value) { |
| 1590 | const message = (value as { message: unknown }).message; |
| 1591 | if (typeof message === "string") return message.trim(); |
| 1592 | } |
| 1593 | return ""; |
| 1594 | }; |
| 1595 | |
| 1596 | /** |
| 1597 | * Render an unknown failure by walking its `cause` chain. Wrapper errors |
no outgoing calls
no test coverage detected