[#62904] [ruby-trunk - Feature #9894] [Open] [RFC] README.EXT: document rb_gc_register_mark_object — normalperson@...
Issue #9894 has been reported by Eric Wong.
3 messages
2014/06/02
[#63321] [ANN] ElixirConf 2014 - Don't Miss Jos辿 Valim and Dave Thomas — Jim Freeze <jimfreeze@...>
Just a few more weeks until ElixirConf 2014!
6 messages
2014/06/24
[ruby-core:62984] [ruby-trunk - Feature #9918] [Open] Exception#cause should be shown in output and #inspect
From:
eregontp@...
Date:
2014-06-07 12:58:11 UTC
List:
ruby-core #62984
Issue #9918 has been reported by Benoit Daloze.
----------------------------------------
Feature #9918: Exception#cause should be shown in output and #inspect
https://bugs.ruby-lang.org/issues/9918
* Author: Benoit Daloze
* Status: Open
* Priority: Normal
* Assignee:
* Category: core
* Target version: current: 2.2.0
----------------------------------------
Exception#cause has been added in Feature #8257.
But the cause is never shown, one needs to inspect exc.cause to know the cause.
The cause should be shown by default, for instance:
begin
raise "cause"
rescue
raise "wrapper"
end
Should output:
-:4:in `rescue in <main>': wrapper (RuntimeError)
from -:1:in `<main>'
Caused by:
-e:1:in `<main>': org (RuntimeError)
And not only the first 2 lines.
Logically, #inspect should also include the cause such as:
#<RuntimeError: wrapper cause:#<RuntimeError: org>>
What do you think?
--
https://bugs.ruby-lang.org/