Skip to content

Commit

Permalink
Debug why crack is failing.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefl committed Dec 16, 2011
1 parent 2ba70bb commit 74eaa8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/chargify/parser.rb
Expand Up @@ -3,8 +3,10 @@ class Parser < HTTParty::Parser

def parse
begin
JSON.parse(body)
puts body
Crack::JSON.parse(body)
rescue => e
puts e.message
raise(Chargify::Error::UnexpectedResponse.new(e.message), body)
end
end
Expand Down

0 comments on commit 74eaa8c

Please sign in to comment.