Localisation updates from translatewiki.net (2009-12-05)
[rails.git] / config / initializers / abstract_adapter.rb
index 7b22a3cc6ccbd95cf5deda3203de5bbb87985d05..24d7c56e1b5843480473011573b596d04ec2cb08 100644 (file)
@@ -13,8 +13,8 @@ module ActiveRecord
           old_log(sql, name)
         end
       rescue ActiveRecord::StatementInvalid => ex
-        if ex =~ /^OSM::APITimeoutError: /
-          raise OSM::APITimeoutError
+        if ex.message =~ /^OSM::APITimeoutError: /
+          raise OSM::APITimeoutError.new
         else
           raise
         end