Skip to content

Commit

Permalink
Rescue and log all errors when loading models.
Browse files Browse the repository at this point in the history
  • Loading branch information
martingordon committed Sep 2, 2011
1 parent c2024b0 commit eb66e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thinking_sphinx/context.rb
Expand Up @@ -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"), ''
Expand Down

0 comments on commit eb66e93

Please sign in to comment.