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

improve document error handling #310

Merged
merged 1 commit into from
Feb 3, 2025
Merged

improve document error handling #310

merged 1 commit into from
Feb 3, 2025

Conversation

cloverich
Copy link
Owner

  • add better error display and ability to navigate when a document errors unexpectedly
  • refactor Alert to simplify interface
  • add better behavior when document not found (navigates back to homepage with toast); clean-up invalid error handling

Now displays the stack inside navigation, and outputs the document it tried to load. Alert is not pretty, but its better than it was (and also not evergreen, #215 )
handled error

When document not found, instead of empty screen with a line of text, navigates back to documents search page with toast; this was the original intent but miscue on handling the not found error resulted in this being mixed up.
Screenshot 2025-02-03 at 11 51 59 AM

There's also some corrections to other kinds of errors being caught, but did not test these.

Closes #260

- add better error display and ability to navigate when a document errors unexpectedly
- refactor Alert to simplify interface
- add better behavior when document not found (navigates back to homepage with toast); clean-up invalid error handling

Closes #260
@cloverich cloverich merged commit 1105ff5 into master Feb 3, 2025
5 checks passed
@cloverich cloverich deleted the improve_doc_errors branch February 3, 2025 20:33
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.

Improve error handling when a note fails to render
1 participant