mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Embed backtrace to debug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8109c530b2
commit
09063f9d30
1 changed files with 2 additions and 1 deletions
|
@ -207,7 +207,8 @@ th = Thread.new do
|
||||||
begin
|
begin
|
||||||
require ARGV[0]
|
require ARGV[0]
|
||||||
ensure
|
ensure
|
||||||
Marshal.dump($!, STDOUT)
|
err = $! ? [$!, $!.backtrace] : $!
|
||||||
|
Marshal.dump(err, STDOUT)
|
||||||
STDOUT.flush
|
STDOUT.flush
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue