(value: unknown)
| 1562 | ); |
| 1563 | |
| 1564 | const ownMessage = (value: unknown): string => { |
| 1565 | if (typeof value === "string") return value.trim(); |
| 1566 | if (typeof value === "object" && value !== null && "message" in value) { |
| 1567 | const message = (value as { message: unknown }).message; |
| 1568 | if (typeof message === "string") return message.trim(); |
| 1569 | } |
| 1570 | return ""; |
| 1571 | }; |
| 1572 | |
| 1573 | /** |
| 1574 | * Render an unknown failure by walking its `cause` chain. Wrapper errors |
no outgoing calls
no test coverage detected