lib/testingbot/api.rb in testingbot-0.1.6 vs lib/testingbot/api.rb in testingbot-0.1.7

- old
+ new

@@ -54,9 +54,10 @@ req = Net::HTTP::Get.new(uri.request_uri) req.basic_auth @config[:client_key], @config[:client_secret] res = Net::HTTP.start(uri.host, uri.port, :use_ssl => true) {|http| http.request(req) } + p res.body parsed = JSON.parse(res.body) if !parsed["error"].nil? && !parsed["error"].empty? raise parsed["error"]