Add web network failure error detection (close APP-83) (#537)
parent
e99c324f14
commit
e1fd50d014
|
@ -19,5 +19,9 @@ export function cleanError(str: any): string {
|
|||
|
||||
export function isNetworkError(e: unknown) {
|
||||
const str = String(e)
|
||||
return str.includes('Abort') || str.includes('Network request failed')
|
||||
return (
|
||||
str.includes('Abort') ||
|
||||
str.includes('Network request failed') ||
|
||||
str.includes('Failed to fetch')
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue