Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Use correct JSON field in case returned error message is not valid JSON #27

Merged
merged 1 commit into from
Oct 5, 2018
Merged

Conversation

dstengele
Copy link
Contributor

It seems that the YNAB API does not always return valid JSON in the detail field. The fallback seems to be trying to access the wrong JSON filed though in this case, so no further information is shown to the user. This PR changes the field used from message to detail.

@gitviola
Copy link
Owner

gitviola commented Oct 5, 2018

Awesome! Good catch @derintendant! Thank you for this PR as well. I'll merge in a sec.

@gitviola gitviola merged commit 8d5057f into gitviola:master Oct 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants