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