Fix detection of timeouts

This commit is contained in:
Tom Hughes 2013-08-12 17:33:18 +01:00
parent 5da715756d
commit b2c42d5521

View file

@ -370,7 +370,7 @@ class ApplicationController < ActionController::Base
rescue ActionView::Template::Error => ex
ex = ex.original_exception
if ex.is_a?(ActiveRecord::StatementInvalid) and ex.message =~ /^Timeout::Error/
if ex.is_a?(ActiveRecord::StatementInvalid) and ex.message =~ /execution expired/
ex = Timeout::Error.new
end