Skip to content

Commit

Permalink
Error message formatting (for consistency).
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreisner committed Jun 27, 2018
1 parent 0666152 commit 12dded6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/geocoder/lookups/google.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def results(query)
Geocoder.log(:warn, "#{name} API error: over query limit.")
when "REQUEST_DENIED"
raise_error(Geocoder::RequestDenied, doc['error_message']) ||
Geocoder.log(:warn, "#{name} API error: request denied, google returned '#{doc['error_message']}'.")
Geocoder.log(:warn, "#{name} API error: request denied (#{doc['error_message']}).")
when "INVALID_REQUEST"
raise_error(Geocoder::InvalidRequest, doc['error_message']) ||
Geocoder.log(:warn, "#{name} API error: invalid request, google returned '#{doc['error_message']}'.")
Geocoder.log(:warn, "#{name} API error: invalid request (#{doc['error_message']}).")
end
return []
end
Expand Down

0 comments on commit 12dded6

Please sign in to comment.