From 9773e79724cd22c335f326619563879184b405ae Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Fri, 26 Nov 2021 03:50:18 -0800 Subject: [PATCH] More aggressively filter failed to fetch Reviewed By: jknoxville Differential Revision: D32674487 fbshipit-source-id: dab9d29c326d2a5e7a49fe55656ee06c0742eb69 --- desktop/flipper-common/src/utils/errors.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop/flipper-common/src/utils/errors.tsx b/desktop/flipper-common/src/utils/errors.tsx index ace31c22f..733240e4b 100644 --- a/desktop/flipper-common/src/utils/errors.tsx +++ b/desktop/flipper-common/src/utils/errors.tsx @@ -21,7 +21,10 @@ export function isConnectivityOrAuthError( return ( err instanceof ConnectivityError || isAuthError(err) || - String(err).startsWith('Failed to fetch') + String(err).startsWith('Failed to fetch') || + // In cases where the error message is wrapped but the + // underlying core issue is still a fetch failure. + String(err).endsWith('Failed to fetch') ); }