X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4f6dc5568301dc878c20ef3a9039d31a95a99815..70a5a0d9c69c78e679a821370afeb53e4afa2d03:/config/initializers/abstract_adapter.rb diff --git a/config/initializers/abstract_adapter.rb b/config/initializers/abstract_adapter.rb index 24d7c56e1..5cc24d25c 100644 --- a/config/initializers/abstract_adapter.rb +++ b/config/initializers/abstract_adapter.rb @@ -15,6 +15,8 @@ module ActiveRecord rescue ActiveRecord::StatementInvalid => ex if ex.message =~ /^OSM::APITimeoutError: / raise OSM::APITimeoutError.new + elsif ex.message =~ /^Timeout::Error: / + raise Timeout::Error.new("time's up!") else raise end