diff options
-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 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 |