1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Make pryrc load errors more useful.

This commit is contained in:
Jordon Bedwell 2013-01-01 03:40:36 -06:00
parent 955580e2db
commit f2168f1793
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ class Pry
begin
toplevel_binding.eval(File.read(full_name), full_name) if File.exists?(full_name)
rescue RescuableException => e
puts "Error loading #{file_name}: #{e}"
puts "Error loading #{file_name}: #{e}\n#{e.backtrace.first}"
end
end

View file

@ -390,7 +390,7 @@ describe Pry do
end
it "should output an error" do
@doing_it.call.should ==
@doing_it.call.split("\n").first.should ==
"Error loading spec/fixtures/testrcbad: messin with ya"
end
end