Permalink
Browse files

Rescue and log all errors when loading models.

  • Loading branch information...
1 parent c2024b0 commit eb66e93fb4e5a1a348acdb001c5ca12c6797db6c @martingordon martingordon committed Sep 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/thinking_sphinx/context.rb
@@ -62,7 +62,7 @@ def load_models
begin
camelized_model.constantize
- rescue StandardError => err
+ rescue Error => err
STDERR.puts "Warning: Error loading #{file}:"
STDERR.puts err.message
STDERR.puts err.backtrace.join("\n"), ''

0 comments on commit eb66e93

Please sign in to comment.