(err: unknown)
| 65 | } |
| 66 | |
| 67 | export function getErrorMessage(err: unknown): string { |
| 68 | return err instanceof Error ? err.message : String(err); |
| 69 | } |
| 70 | |
| 71 | export function toError(err: unknown): Error { |
| 72 | return err instanceof Error ? err : new Error(String(err)); |
no outgoing calls
no test coverage detected