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

Don't swallow errors in development mode #1045

Merged
merged 1 commit into from
Apr 26, 2024
Merged

Conversation

acoffman
Copy link
Member

@acoffman acoffman commented Apr 25, 2024

Previously, this error handler would catch any errors that are emitted, check for a load failure, and advise the user to reload the app.

That was fine in prod mode, but has the side effect of swallowing all errors in dev mode, which makes debugging difficult.

Retain that behavior in prod mode, but console log errors otherwise.

@acoffman acoffman added the housekeeping PR Label for minor housekeeping tasks and updates. Will appear in release notes. label Apr 25, 2024
@acoffman acoffman merged commit 4162888 into main Apr 26, 2024
5 checks passed
@acoffman acoffman deleted the dont-suppress-errors branch April 26, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping PR Label for minor housekeeping tasks and updates. Will appear in release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant