aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debug.rb
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-18 06:02:38 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-18 06:02:38 +0000
commit5ce589c25d0e096bc6931602763678c13e9f7afa (patch)
tree19645db6149f4441585d5f174302136f25e2d6a5 /lib/debug.rb
parentc7e16e94e41164b9d409142a536dd80d00572dab (diff)
downloadruby-5ce589c25d0e096bc6931602763678c13e9f7afa.tar.gz
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
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb2
1 files changed, 1 insertions, 1 deletions
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