(value: unknown)
| 1543 | ); |
| 1544 | |
| 1545 | const ownMessage = (value: unknown): string => { |
| 1546 | if (typeof value === "string") return value.trim(); |
| 1547 | if (typeof value === "object" && value !== null && "message" in value) { |
| 1548 | const message = (value as { message: unknown }).message; |
| 1549 | if (typeof message === "string") return message.trim(); |
| 1550 | } |
| 1551 | return ""; |
| 1552 | }; |
| 1553 | |
| 1554 | /** |
| 1555 | * Render an unknown failure by walking its `cause` chain. Wrapper errors |
no outgoing calls
no test coverage detected