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

More comprehensive error handling #4444

Merged
merged 2 commits into from
Aug 22, 2024
Merged

Conversation

apata
Copy link
Contributor

@apata apata commented Aug 15, 2024

Changes

Currently, any error occurring within the route tree falls back to router's default error component, not to our ErrorBoundary.
Example: https://plausible.io/plausible.io?filters=invalid

This PR configures our custom error message to be shown for those errors as well.
Example: https://pr-4444.review.plausible.io/plausible.io?filters=1

It also slightly changes the styling of that error (the error is rendered with monospaced font), and provides a navigation suggestion to the user that might remedy the situation.

Tests

  • Automated tests have been added

Changelog

  • This PR does not make a significant user-facing change

Documentation

  • This change does not need a documentation update

Dark mode

  • The UI has been tested both in dark and light mode

@apata apata force-pushed the more-comprehensive-error-handling branch from d20203c to e9ddd37 Compare August 15, 2024 15:48
@apata apata added the preview label Aug 16, 2024
Copy link

Preview environment👷🏼‍♀️🏗️
PR-4444

@apata apata force-pushed the more-comprehensive-error-handling branch from 7a3cd5b to 92fac22 Compare August 21, 2024 12:40
@apata apata added bug Something isn't working preview and removed preview bug Something isn't working labels Aug 21, 2024
Copy link

Preview environment👷🏼‍♀️🏗️
PR-4444

1 similar comment
Copy link

Preview environment👷🏼‍♀️🏗️
PR-4444

@apata apata merged commit ef5bee4 into master Aug 22, 2024
10 checks passed
@apata apata deleted the more-comprehensive-error-handling branch September 6, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants