[DOC] Split old and new backtrace displays
This commit is contained in:
parent
eddcff26a3
commit
a081fe11f9
Notes:
git
2024-10-08 16:34:02 +00:00
4
NEWS.md
4
NEWS.md
@ -138,12 +138,14 @@ See GitHub releases like [GitHub Releases of Logger](https://github.com/ruby/log
|
|||||||
* Display a class name before a method name (only when the class has a permanent name). [[Feature #19117]]
|
* Display a class name before a method name (only when the class has a permanent name). [[Feature #19117]]
|
||||||
* `Kernel#caller`, `Thread::Backtrace::Location`'s methods, etc. are also changed accordingly.
|
* `Kernel#caller`, `Thread::Backtrace::Location`'s methods, etc. are also changed accordingly.
|
||||||
|
|
||||||
```
|
|
||||||
Old:
|
Old:
|
||||||
|
```
|
||||||
test.rb:1:in `foo': undefined method `time' for an instance of Integer
|
test.rb:1:in `foo': undefined method `time' for an instance of Integer
|
||||||
from test.rb:2:in `<main>'
|
from test.rb:2:in `<main>'
|
||||||
|
```
|
||||||
|
|
||||||
New:
|
New:
|
||||||
|
```
|
||||||
test.rb:1:in 'Object#foo': undefined method 'time' for an instance of Integer
|
test.rb:1:in 'Object#foo': undefined method 'time' for an instance of Integer
|
||||||
from test.rb:2:in '<main>'
|
from test.rb:2:in '<main>'
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user