Skip to content

Commit

Permalink
.pryrc was loaded with wrong __FILE__, fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
rking authored and rking@sharpsaw.org committed Aug 5, 2012
1 parent 6fd797d commit bd30957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pry/pry_class.rb
Expand Up @@ -63,7 +63,7 @@ def self.delegate_accessors(delagatee, *names)
def self.load_file_at_toplevel(file_name) def self.load_file_at_toplevel(file_name)
full_name = File.expand_path(file_name) full_name = File.expand_path(file_name)
begin begin
toplevel_binding.eval(File.read(full_name)) if File.exists?(full_name) toplevel_binding.eval(File.read(full_name), full_name) if File.exists?(full_name)
rescue RescuableException => e rescue RescuableException => e
puts "Error loading #{file_name}: #{e}" puts "Error loading #{file_name}: #{e}"
end end
Expand Down

0 comments on commit bd30957

Please sign in to comment.