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 backend error logging #2484

Merged
merged 1 commit into from
Jun 21, 2018
Merged

Fix backend error logging #2484

merged 1 commit into from
Jun 21, 2018

Conversation

nwmac
Copy link
Contributor

@nwmac nwmac commented Jun 21, 2018

Errors were returning just the response, not the correct error structure. This is fixed.

We also correctly determine if the error response is valid JSON and quote it if it is not.

@cfdreddbot
Copy link

Hey nwmac!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.

@nwmac nwmac added the P1 Priority 1 label Jun 21, 2018
@nwmac nwmac self-assigned this Jun 21, 2018
@nwmac nwmac requested a review from irfanhabib June 21, 2018 08:42
@codecov
Copy link

codecov bot commented Jun 21, 2018

Codecov Report

Merging #2484 into v2-master will decrease coverage by <.01%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##           v2-master    #2484      +/-   ##
=============================================
- Coverage      70.74%   70.73%   -0.01%     
=============================================
  Files            589      590       +1     
  Lines          24802    24832      +30     
  Branches        5595     5605      +10     
=============================================
+ Hits           17546    17565      +19     
- Misses          7256     7267      +11

Copy link
Contributor

@irfanhabib irfanhabib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@irfanhabib irfanhabib merged commit 44c6eec into v2-master Jun 21, 2018
@irfanhabib irfanhabib deleted the backend-errors branch June 21, 2018 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants