lib/vote_smart/common.rb in netroots-ruby-votesmart-0.2.2 vs lib/vote_smart/common.rb in netroots-ruby-votesmart-0.2.3

- old
+ new

@@ -84,10 +84,10 @@ def self.get_json_data(url) response = Net::HTTP.get_response(URI.parse(url)) if response.class == Net::HTTPOK result = JSON.parse(response.body) else - raise RequestFailed.new("Request was not OK: #{response.class}: #{response.body}") + raise RequestFailed.new("Request was not OK: #{response.class}: #{url} #{response.body}") end end # self.get_json_data end