diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/envutil.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 0d5d6f9173..55657a0762 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -529,13 +529,14 @@ eom begin values << th.value rescue Exception - errs << $! + errs << [th, $!] end end if !errs.empty? - msg = errs.map {|err| + msg = errs.map {|t, err| err.backtrace.map.with_index {|line, i| if i == 0 + "#{t.inspect}:\n" + "#{line}: #{err.message} (#{err.class})" else "\tfrom #{line}" |