From 3c9bf6e1dc3066e32651c955c6e237488115354d Mon Sep 17 00:00:00 2001 From: Thiago Pradi Date: Sat, 11 Sep 2010 11:00:37 -0300 Subject: Exception handling more readable [#5601 state:committed] Signed-off-by: Santiago Pastorino --- activeresource/lib/active_resource/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activeresource/lib') diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb index cf3848efb5..3241a161a9 100644 --- a/activeresource/lib/active_resource/base.rb +++ b/activeresource/lib/active_resource/base.rb @@ -589,8 +589,8 @@ module ActiveResource def prefix(options={}) "#{prefix_call}" end RUBY_EVAL end - rescue - logger.error "Couldn't set prefix: #{$!}\n #{code}" if logger + rescue Exception => e + logger.error "Couldn't set prefix: #{e}\n #{code}" if logger raise end -- cgit v1.2.3