aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorstopdropandrew <andrew@kongregate.com>2013-10-24 16:09:58 -0700
committerstopdropandrew <andrew@kongregate.com>2013-10-24 16:43:27 -0700
commit54f485248ce2d097f1bf5e0cf202b22d13b26f78 (patch)
treebbc35d0fedb0b1c9ad6cbf9af1e46831e3f3d236 /actionview
parent3e5bb8693ac8583e32f7080db62fb23a280205cf (diff)
downloadrails-54f485248ce2d097f1bf5e0cf202b22d13b26f78.tar.gz
rails-54f485248ce2d097f1bf5e0cf202b22d13b26f78.tar.bz2
rails-54f485248ce2d097f1bf5e0cf202b22d13b26f78.zip
Avoid unnecessary catching of Exception instead of StandardError (converting Exceptions into StandardErrors)
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/template.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/template.rb b/actionview/lib/action_view/template.rb
index e2c50fec47..9b0619f1aa 100644
--- a/actionview/lib/action_view/template.rb
+++ b/actionview/lib/action_view/template.rb
@@ -142,7 +142,7 @@ module ActionView
compile!(view)
view.send(method_name, locals, buffer, &block)
end
- rescue Exception => e
+ rescue => e
handle_render_error(view, e)
end
@@ -294,7 +294,7 @@ module ActionView
begin
mod.module_eval(source, identifier, 0)
ObjectSpace.define_finalizer(self, Finalizer[method_name, mod])
- rescue Exception => e # errors from template code
+ rescue => e # errors from template code
if logger = (view && view.logger)
logger.debug "ERROR: compiling #{method_name} RAISED #{e}"
logger.debug "Function body: #{source}"