(e: unknown)
| 119 | * Use when you only need the message (e.g., for logging or display). |
| 120 | */ |
| 121 | export function errorMessage(e: unknown): string { |
| 122 | return e instanceof Error ? e.message : String(e) |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Extract the errno code (e.g., 'ENOENT', 'EACCES') from a caught error. |
no outgoing calls
no test coverage detected