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

Refactor handleErrors #1141

Merged
merged 3 commits into from Jan 2, 2019
Merged

Refactor handleErrors #1141

merged 3 commits into from Jan 2, 2019

Conversation

gettinToasty
Copy link
Contributor

Changes handleErrors into a handleResponse function that will return the json of either the error or the successful response which DRYs up our codebase as well as letting errors bubble up to the component layer in a serializable format allowing for easier and more descriptive error handling

Changes handleErrors into a handleResponse function that will return the json of either the error or the successful response which DRYs up our codebase as well as letting errors bubble up to the component layer in a serializable format allowing for easier and more descriptive error handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants