(error)
| 226 | } |
| 227 | |
| 228 | function safeErrorMessage (error) { |
| 229 | try { |
| 230 | return String(error) |
| 231 | } catch { |
| 232 | return 'Failed' |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | function getErrorMessage (error, name) { |
| 237 | const message = typeof error?.message === 'string' |
no outgoing calls
no test coverage detected