Skip to content

Commit

Permalink
Handle AbortError from firefox.
Browse files Browse the repository at this point in the history
Display message explaining what is happening:
Firefox throw an error when the loading of the page is aborted due to a redirection.
  • Loading branch information
JeanMarcMilletScality committed Sep 26, 2024
1 parent df46a50 commit c28c59c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions shell-ui/src/FederatedApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,14 @@ const AppProviderWrapper = () => {
);
}
if (error instanceof Error) {
if (error.message.includes('AbortError: The operation was aborted')) {
return (
<>
Loading of the application has been aborted due to a redirection
in progress.
</>
);
}
return (
<ErrorPage500
data-cy="sc-error-page500"
Expand Down

0 comments on commit c28c59c

Please sign in to comment.