Skip to content

Commit

Permalink
Explicitly return false if no exception raised.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreisner committed Nov 29, 2011
1 parent 56aa273 commit a0f7afa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/geocoder/lookups/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,13 @@ def result_class

##
# 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

Expand Down

0 comments on commit a0f7afa

Please sign in to comment.