jnunemaker/httparty — pull request #148 by dscataglini (2012-06-21 00:19:52+00:00)
Title: httparty shouldn't swallow the backtrace

httparty swallows the backtrace when a deserialize error happens.

Let's say JSON.parse fails due to incorrectly formatted json or because it's missing the correct data structure to deserialize the string the only error the user gets is:

NotImplementedError: HTTParty::Parser has not implemented a parsing method for the :json format.
lib/httparty/parser.rb:140:in `parse_supported_format'

Which would make people believe that there is something wrong with HTTParty::Parser or the used json library.
For proper debugging of debugging it really should propagate the original backtrace