(value: unknown)
| 1521 | ); |
| 1522 | |
| 1523 | const ownMessage = (value: unknown): string => { |
| 1524 | if (typeof value === "string") return value.trim(); |
| 1525 | if (typeof value === "object" && value !== null && "message" in value) { |
| 1526 | const message = (value as { message: unknown }).message; |
| 1527 | if (typeof message === "string") return message.trim(); |
| 1528 | } |
| 1529 | return ""; |
| 1530 | }; |
| 1531 | |
| 1532 | /** |
| 1533 | * Render an unknown failure by walking its `cause` chain. Wrapper errors |
no outgoing calls
no test coverage detected