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

Error Handling #5

Open
NicholasLYang opened this issue Dec 24, 2017 · 0 comments
Open

Error Handling #5

NicholasLYang opened this issue Dec 24, 2017 · 0 comments

Comments

@NicholasLYang
Copy link
Collaborator

NicholasLYang commented Dec 24, 2017

I need better error handling for Apollo. Basically if a bad request is made, some sort of error component needs to pop up. Read up on Apollo docs on errors. Then, create a component that A. says there's an error (feel free to steal artwork from CFA if you feel like it), B. offers a button to reload the page (with the same url and search params), and C. gives the full error message from the server if you click on a button (just some simple react state should work to toggle). For C, reference Passenger errors like this:

screen shot 2017-12-24 at 2 45 15 am

Btw, the actual error screen can be seen here (unless I manage to fix my other deployment problems lol)

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

No branches or pull requests

1 participant