Method: Periplus::BingResponse#error
- Defined in:
- lib/periplus/bing_response.rb
#error ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/periplus/bing_response.rb', line 23 def error http_code = @response.response.code = @response.response. = "An error has occurred communicating with the Bing Maps service. HTTP Status: #{http_code} (#{})" if Periplus.verbose << "\n URL: #{@response.request.path}" << "\n Response:" << "\n #{PP.pp(@response.response.body, "")}" end end |