Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

910: Separate error message for network errors #913

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

sarahsporck
Copy link
Contributor

May be improved in the overall error handling PR.

@sarahsporck sarahsporck linked an issue Mar 31, 2023 that may be closed by this pull request
@sarahsporck sarahsporck force-pushed the 910-broken-error-page branch from 09c4e83 to ce7ce28 Compare March 31, 2023 14:25
Comment on lines -21 to -24
onError: error => {
console.error(error)
enqueueSnackbar('Etwas ist schief gelaufen.', { variant: 'error' })
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already implement error handling below.


if (error.networkError) {
return { title: 'Server nicht erreichbar.' }
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additionally, please adjust below:
if (error.graphQLErrors.length < 1 || (error.graphQLErrors.length > 1 && !codesEqual)) {

@sarahsporck sarahsporck force-pushed the 910-broken-error-page branch from ce7ce28 to 425044d Compare April 3, 2023 08:01
@sarahsporck sarahsporck merged commit 26ef629 into main Apr 3, 2023
@sarahsporck sarahsporck deleted the 910-broken-error-page branch April 3, 2023 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken error page
2 participants