]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/abstract_adapter.rb
Implement /user/$user/edits/rss, partially solves #1737
[rails.git] / config / initializers / abstract_adapter.rb
index cfa32e4e93325336f979fd4289bfd701398913f1..24d7c56e1b5843480473011573b596d04ec2cb08 100644 (file)
@@ -13,7 +13,7 @@ module ActiveRecord
           old_log(sql, name)
         end
       rescue ActiveRecord::StatementInvalid => ex
           old_log(sql, name)
         end
       rescue ActiveRecord::StatementInvalid => ex
-        if ex =~ /^OSM::APITimeoutError: /
+        if ex.message =~ /^OSM::APITimeoutError: /
           raise OSM::APITimeoutError.new
         else
           raise
           raise OSM::APITimeoutError.new
         else
           raise