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

Handle all Google API errors.

Except ZERO_RESULTS, which doesn't seem to merit a warning.
parent 2d6cf70b
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,11 @@ module Geocoder
case doc['status']; when "OK"
doc
when "OVER_QUERY_LIMIT"
warn "Google Geocoding API error: quota exceeded."
warn "Google Geocoding API error: over query limit."
when "REQUEST_DENIED"
warn "Google Geocoding API error: request denied."
when "INVALID_REQUEST"
warn "Google Geocoding API error: invalid request."
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