diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-07-18 20:51:30 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-07-18 20:51:30 +0900 |
commit | 8a6ef5ef8f4f14f1679bbab3a85fa05217e49a43 (patch) | |
tree | 661c9dc1ac01fe7bb752bcc40302649e8d4c3476 /error.c | |
parent | 9b972310fafc0126ff8c27bdc514808dacea8fcc (diff) |
Make boolean expected messages more consitent
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1271,8 +1271,7 @@ exc_full_message(int argc, VALUE *argv, VALUE exc) rb_get_kwargs(opt, kw, 0, kw_max_, args); switch (args[kw_highlight]) { default: - rb_raise(rb_eArgError, "expected true or false as " - "highlight: %+"PRIsVALUE, args[kw_highlight]); + rb_bool_expected(args[kw_highlight], "highlight"); case Qundef: args[kw_highlight] = Qnil; break; case Qtrue: case Qfalse: case Qnil: break; } |