(error: unknown)
| 1 | export function getErrorMessage(error: unknown): string { |
| 2 | return error instanceof Error ? error.message : String(error); |
| 3 | } |
| 4 | |
| 5 | /** |
| 6 | * Produce a rich, safe-to-log description of any thrown value. |
no outgoing calls
no test coverage detected