Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rescue and log all errors when loading models.

  • Loading branch information...
commit eb66e93fb4e5a1a348acdb001c5ca12c6797db6c 1 parent c2024b0
@martingordon martingordon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/thinking_sphinx/context.rb
View
2  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"), ''
Please sign in to comment.
Something went wrong with that request. Please try again.