Closed Hebo closed 12 years ago
Hi Cev. I'm pretty tied up at the moment. This sounds like an improvement. If you fork and create a pull request, I'll merge it in. Thanks!
I couldn't run the tests that use external dependencies, so I expect the one that requires an exception will fail.
You can catch all expected exceptions from the gem now with rescue Mixpanel::Error => e
Great. Thanks. I'll try to merge it in this week.
Your changes should now be available in version 2.0.2. Thanks!
When the Mixpanel API is down for maintenance or whatever, API requests return HTML instead of JSON, causing json.parse to fail and the resulting error to bubble up to my application.
Can we tweak the MP API or put all mixpanel_client related errors in one namespace so I have only one thing to catch in my app?
Error