(error: any, stringsToCheck: string[])
| 210 | } |
| 211 | |
| 212 | function doesErrorContainString(error: any, stringsToCheck: string[]): boolean { |
| 213 | const errorString = (!!error && typeof error === 'object' && error?.toString()) || ''; |
| 214 | const shouldTryFallback = stringsToCheck.some(stringToCheck => errorString.includes(stringToCheck)); |
| 215 | return shouldTryFallback; |
| 216 | } |
no outgoing calls
no test coverage detected