mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Exception#backtrace may be nil if it is manually created
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3e92b635fb
commit
183c1a0fa1
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ module Test
|
|||
rescue Errno::EPIPE
|
||||
rescue Exception => e
|
||||
begin
|
||||
trace = e.backtrace
|
||||
trace = e.backtrace || ['unknown method']
|
||||
err = ["#{trace.shift}: #{e.message} (#{e.class})"] + trace.map{|t| t.prepend("\t") }
|
||||
|
||||
_report "bye", Marshal.dump(err.join("\n"))
|
||||
|
|
Loading…
Reference in a new issue