1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nahi 2002-09-18 06:02:38 +00:00
parent c7e16e94e4
commit 5ce589c25d

View file

@ -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