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

Merge branch 'master' of github.com:alexreisner/geocoder

parents eba79f25 5af9f7b3
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