From 5ce589c25d0e096bc6931602763678c13e9f7afa Mon Sep 17 00:00:00 2001 From: nahi Date: Wed, 18 Sep 2002 06:02:38 +0000 Subject: No exception report when the exception is not specified to catch. [ruby-talk:50330] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/debug.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/debug.rb') diff --git a/lib/debug.rb b/lib/debug.rb index b6625848b3..16123c3d96 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -666,13 +666,13 @@ EOHELP end def excn_handle(file, line, id, binding) - stdout.printf "%s:%d: `%s' (%s)\n", file, line, $!, $!.type if $!.type <= SystemExit set_trace_func nil exit end if @catch and ($!.type.ancestors.find { |e| e.to_s == @catch }) + stdout.printf "%s:%d: `%s' (%s)\n", file, line, $!, $!.type fs = @frames.size tb = caller(0)[-fs..-1] if tb -- cgit v1.2.3