Skip to content
Snippets Groups Projects
Commit 0fab1ae1 authored by Ryan Barber's avatar Ryan Barber
Browse files

make it possible to raise Geocoder::OverQueryLimitError, issue #187

parent 42166c80
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ module Geocoder
# Return false if exception not raised.
#
def raise_error(error, message = nil)
if Geocoder::Configuration.always_raise.include?(error.class)
if Geocoder::Configuration.always_raise.include?( error.is_a?(Class) ? error : error.class )
raise error, message
else
false
......
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