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

fix/error-handling #4

Merged
merged 2 commits into from
Jul 20, 2023
Merged

fix/error-handling #4

merged 2 commits into from
Jul 20, 2023

Conversation

edwintantawi
Copy link
Owner

@edwintantawi edwintantawi commented Jul 18, 2023

What?

Removes custom exceptions and treats all errors as unexpected and will be handled by error boundaries.

Why?

Related to this issue #3, this PR is not the best solution for this problem but it is okay for now, and consider refactoring at a later time to handle the expected error better.

nextjs will secure sensitive error information in production, so custom exceptions will be useless
@edwintantawi edwintantawi linked an issue Jul 18, 2023 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Jul 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
foodsery ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 20, 2023 2:30pm

@edwintantawi edwintantawi merged commit f52826b into main Jul 20, 2023
2 checks passed
@edwintantawi edwintantawi deleted the fix/error-handling branch July 26, 2023 02:10
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.

Bad Error Handling
1 participant