lib/thinking_sphinx/context.rb in thinking-sphinx-1.3.20 vs lib/thinking_sphinx/context.rb in thinking-sphinx-1.4.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