lib/thinking_sphinx/context.rb in thinking-sphinx-2.0.0.rc2 vs lib/thinking_sphinx/context.rb in thinking-sphinx-2.0.0

- old
+ new

@@ -63,11 +63,13 @@ model_name.camelize.constantize rescue LoadError model_name.gsub!(/.*[\/\\]/, '').nil? ? next : retry rescue NameError next - rescue StandardError - STDERR.puts "Warning: Error loading #{file}" + rescue StandardError => err + STDERR.puts "Warning: Error loading #{file}:" + STDERR.puts err.message + STDERR.puts err.backtrace.join("\n"), '' end end end end end