From f0e8ebbea4c2fd1062ee59e2a97d636ef91d490a Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Wed, 14 Sep 2011 15:47:09 -0700 Subject: [PATCH] Remove confusing warning on output error. --- lib/pry.rb | 1 - test/test_pry_output.rb | 4 ---- 2 files changed, 5 deletions(-) diff --git a/lib/pry.rb b/lib/pry.rb index a6db16a7d..d52066013 100644 --- a/lib/pry.rb +++ b/lib/pry.rb @@ -29,7 +29,6 @@ class Pry # Read the class name off of the singleton class to provide a default inspect. klass = (class << value; self; end).ancestors.first stringified = "#<#{klass}:0x#{value.__id__.to_s(16)}>" - Helpers::BaseHelpers.stagger_output("output error: #{ex.inspect}", output) if ex end Helpers::BaseHelpers.stagger_output("=> #{Helpers::BaseHelpers.colorize_code(stringified)}", output) diff --git a/test/test_pry_output.rb b/test/test_pry_output.rb index adbe19bb5..1de06d378 100644 --- a/test/test_pry_output.rb +++ b/test/test_pry_output.rb @@ -36,9 +36,5 @@ it "should not be phased by un-inspectable things" do mock_pry("class NastyClass; undef pretty_inspect; end", "NastyClass.new").should =~ /#/ end - - it "should warn you about un-inspectable things" do - mock_pry("class NastyClass; undef pretty_inspect; end", "NastyClass.new").should =~ /output error: #<(NoMethodError|NameError): undefined method `pretty_inspect'/ - end end end