Recognise wrapped timeout exceptions properly
This commit is contained in:
parent
07ebb40ebb
commit
55dda7b184
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ class ApplicationController < ActionController::Base
|
|||
OSM::Timer.timeout(WEB_TIMEOUT) do
|
||||
yield
|
||||
end
|
||||
rescue ActionView::TemplateError => ex
|
||||
rescue ActionView::Template::Error => ex
|
||||
if ex.original_exception.is_a?(Timeout::Error)
|
||||
render :action => "timeout"
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue