Skip to content
This repository has been archived by the owner on May 7, 2018. It is now read-only.

Incomplete objects throw NoMethodErrors on decode #21

Open
nateberkopec opened this issue Nov 17, 2014 · 2 comments
Open

Incomplete objects throw NoMethodErrors on decode #21

nateberkopec opened this issue Nov 17, 2014 · 2 comments

Comments

@nateberkopec
Copy link
Contributor

   OkJson.decode("{")
   OkJson.decode("[")

Both throw NoMethodError rather than the expected OkJson::Error

@nateberkopec
Copy link
Contributor Author

I couldn't figure out how to write a test for this using your test harness, but the way we fixed it over at raven-ruby is here.

@bfontaine
Copy link

I confirm the bug still exists.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants