MCPcopy Create free account
hub / github.com/benwinding/react-admin-import-csv / doesErrorContainString

Function doesErrorContainString

src/uploader.ts:212–216  ·  view source on GitHub ↗
(error: any, stringsToCheck: string[])

Source from the content-addressed store, hash-verified

210}
211
212function 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}

Callers 2

createInDataProviderFunction · 0.85
updateInDataProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected