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

Explicitly return false if no exception raised.

parent 56aa273e
No related branches found
No related tags found
No related merge requests found
......@@ -92,10 +92,13 @@ module Geocoder
##
# Raise exception if configuration specifies it should be raised.
# Return false if exception not raised.
#
def raise_error(error, message = nil)
if Geocoder::Configuration.always_raise.include?(error.class)
raise error, message
else
false
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