diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-14 23:48:39 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-14 23:48:39 +0000 |
commit | bfa6bfc24a0034ae599861a6e8655df024973eed (patch) | |
tree | b5e9e0cb86fd1584727961e2e6e1a3d6a7959355 /activerecord/lib/active_record | |
parent | 066988d2f330961503a58dc139a8f10439575fdf (diff) | |
download | rails-bfa6bfc24a0034ae599861a6e8655df024973eed.tar.gz rails-bfa6bfc24a0034ae599861a6e8655df024973eed.tar.bz2 rails-bfa6bfc24a0034ae599861a6e8655df024973eed.zip |
Fixed that SQLite3 exceptions are caught and reported properly #823 [yerejm]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@909 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-x | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index cf7f07ba26..ac58b60e8d 100755 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -405,7 +405,7 @@ module ActiveRecord log_info(sql, name, 0) nil end - rescue => e + rescue Exception => e log_info("#{e.message}: #{sql}", name, 0) raise ActiveRecord::StatementInvalid, "#{e.message}: #{sql}" end @@ -453,4 +453,4 @@ module ActiveRecord end end end -end
\ No newline at end of file +end |