diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2021-11-30 16:27:12 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2022-06-07 11:07:09 +0900 |
| commit | 9d927204e7b86eb00bfd07a060a6383139edf741 (patch) | |
| tree | 104a9f92a462773adb5d5916068fa9b00152ed9d /array.rb | |
| parent | dbfb3b1917dbe89816ffeea6046d2743c32bf6b6 (diff) | |
error.c: Let Exception#inspect inspect its message
... only when the message string has a newline.
`p StandardError.new("foo\nbar")` now prints `#<StandardError: "foo\nbar">'
instead of:
#<StandardError:
bar>
[Bug #18170]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4857
Diffstat (limited to 'array.rb')
0 files changed, 0 insertions, 0 deletions
