Localisation updates from translatewiki.net (2009-10-19)
[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
-        if ex =~ /^OSM::APITimeoutError: /
+        if ex.message =~ /^OSM::APITimeoutError: /
           raise OSM::APITimeoutError.new
         else
           raise