diff options
| author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-18 06:02:38 +0000 |
|---|---|---|
| committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-18 06:02:38 +0000 |
| commit | b54c6a868bbcbab88267a8f5a33b954851d3767a (patch) | |
| tree | 19645db6149f4441585d5f174302136f25e2d6a5 /lib | |
| parent | 932e6c807f8a8c64dcb38db0a0f4c67c73fb116b (diff) | |
| download | ruby-b54c6a868bbcbab88267a8f5a33b954851d3767a.tar.gz ruby-b54c6a868bbcbab88267a8f5a33b954851d3767a.tar.xz ruby-b54c6a868bbcbab88267a8f5a33b954851d3767a.zip | |
No exception report when the exception is not specified to catch.
[ruby-talk:50330]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/debug.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/debug.rb b/lib/debug.rb index b6625848b..16123c3d9 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 |
