diff options
author | Thiago Pradi <tchandy@gmail.com> | 2010-09-11 11:00:37 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-09-19 12:18:51 -0700 |
commit | 3c9bf6e1dc3066e32651c955c6e237488115354d (patch) | |
tree | 81cada8d920dac2d435e8f0ef0bb37aa7fd6ce08 /activeresource | |
parent | af6757a1ca7027b526b35d74c94a520d6bb24d7a (diff) | |
download | rails-3c9bf6e1dc3066e32651c955c6e237488115354d.tar.gz rails-3c9bf6e1dc3066e32651c955c6e237488115354d.tar.bz2 rails-3c9bf6e1dc3066e32651c955c6e237488115354d.zip |
Exception handling more readable
[#5601 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activeresource')
-rw-r--r-- | activeresource/lib/active_resource/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |