X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d6f518f6279ddd8e07d8f78577b1414567fc6a5c..32c3000af7c2c4016b75abf5a396262e28aabd72:/app/controllers/application_controller.rb?ds=inline diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 045e93eb7..a2211ea69 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -235,7 +235,7 @@ class ApplicationController < ActionController::Base e = e.cause if e.is_a?(Timeout::Error) || - (e.is_a?(ActiveRecord::StatementInvalid) && e.message =~ /execution expired/) + (e.is_a?(ActiveRecord::StatementInvalid) && e.message.include?("execution expired")) render :action => "timeout" else raise