Skip to content
Snippets Groups Projects
Commit 293c6e8f authored by Alex Reisner's avatar Alex Reisner
Browse files

Show response when not valid JSON.

parent 7eeafa95
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,7 @@ module Geocoder ...@@ -182,7 +182,7 @@ module Geocoder
JSON.parse(data) JSON.parse(data)
end end
rescue => err rescue => err
raise_error(ResponseParseError.new(data)) or Geocoder.log(:warn, "Geocoding API's response was not valid JSON.") raise_error(ResponseParseError.new(data)) or Geocoder.log(:warn, "Geocoding API's response was not valid JSON: #{data}")
end end
## ##
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment