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

Add error handling for JSON.parse errors #22

Merged
merged 2 commits into from Jan 14, 2019
Merged

Conversation

lteacher
Copy link
Owner

Per comments in #17 this PR introduces some error handling so that the api won't crash for unknown reasons in the event that Oanda send some junk through the stream.

There is no 'type' check because if they just send a string of text it may be valid and have some information that isn't documented, i dont think the wrapper should make assumptions about the structure unless necessary.

@lteacher lteacher merged commit b43b9ef into master Jan 14, 2019
@lteacher lteacher deleted the handle-json-parse-errors branch January 14, 2019 01:12
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.

None yet

1 participant