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

Merge pull request #193 from rfb/master

This is to fix #187
parents 42166c80 0fab1ae1
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,7 @@ module Geocoder ...@@ -95,7 +95,7 @@ module Geocoder
# Return false if exception not raised. # Return false if exception not raised.
# #
def raise_error(error, message = nil) 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 raise error, message
else else
false 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