diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2022-07-12 13:50:04 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2022-07-13 16:09:11 +0900 |
| commit | 1fe6c926036b3e6956865b56fba52ed242488e42 (patch) | |
| tree | 20163ae998717e5df19861e3a5cc5c92fc618b80 /lib/net/https.rb | |
| parent | 1052ad4e48b09622d5ed2f10958b9f170a7e3a98 (diff) | |
Specify usable escape sequences in Exception#detailed_message
An error message is primarily rendered in a terminal emulator, but is
also shown in a browser by converting it to a HTML fragment.
However, the conversion would be unreasonably difficult if the message
includes any escape sequence (such as cursor move or screen clear).
This change adds a guideline about escape sequences in
`Exception#detailed_message`:
* Use widely-supported escape sequences: bold, underline, and basic
eight foreground colors (except white and black).
* Make the message readable if all escape sequences are ignored.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6119
Diffstat (limited to 'lib/net/https.rb')
0 files changed, 0 insertions, 0 deletions
