From 6254b8a0a0abcb23f92ea75c43b5cb96da170e31 Mon Sep 17 00:00:00 2001 From: John Mair Date: Sat, 5 Jan 2013 20:37:37 +0100 Subject: [PATCH] reload-code: use obj_name (rather than code_object) in output strings --- lib/pry/commands/reload_code.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pry/commands/reload_code.rb b/lib/pry/commands/reload_code.rb index 74d02b94..3106014a 100644 --- a/lib/pry/commands/reload_code.rb +++ b/lib/pry/commands/reload_code.rb @@ -15,7 +15,7 @@ class Pry def reload_code_object(code_object) load code_object.source_file - output.puts "#{code_object} was reloaded!" + output.puts "#{obj_name} was reloaded!" end def obj_name @@ -26,7 +26,7 @@ class Pry if !code_object raise CommandError, "Cannot locate #{obj_name}!" elsif !File.exists?(code_object.source_file) - raise CommandError, "Cannot reload #{code_object} as it has no associated file on disk. File found was: #{code_object.source_file}" + raise CommandError, "Cannot reload #{obj_name} as it has no associated file on disk. File found was: #{code_object.source_file}" end end end