diff options
Diffstat (limited to 'lib/debug.rb')
-rw-r--r-- | lib/debug.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/debug.rb b/lib/debug.rb index 16123c3d96..23a1df6047 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -666,13 +666,13 @@ EOHELP end def excn_handle(file, line, id, binding) - if $!.type <= SystemExit + if $!.class <= 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 + if @catch and ($!.class.ancestors.find { |e| e.to_s == @catch }) + stdout.printf "%s:%d: `%s' (%s)\n", file, line, $!, $!.class fs = @frames.size tb = caller(0)[-fs..-1] if tb |