Make pryrc load errors more useful. #788

Closed
wants to merge 1 commit into from
+1 −0
View
1 lib/pry/pry_class.rb
@@ -70,6 +70,7 @@ def self.load_file_at_toplevel(file_name)
toplevel_binding.eval(File.read(full_name), full_name) if File.exists?(full_name)
rescue RescuableException => e
puts "Error loading #{file_name}: #{e}"
+ puts e.backtrace.first
end
end