Skip to content
Snippets Groups Projects
Commit 45072eb8 authored by Andy Kim's avatar Andy Kim
Browse files

Add an :all flag to pass through all errors so none are ignored

parent 2642ddb2
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 == :all || Geocoder::Configuration.always_raise.include?(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