Fix detection of timeouts
This commit is contained in:
parent
5da715756d
commit
b2c42d5521
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue