aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-05-24 16:48:34 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-06-20 19:35:12 +0900
commita58611dfb1bfc74fb1a51a9cd0ca8ac690c2f1f4 (patch)
treec168f6a4b56c0b159a573639fffcead139a28e28 /error.c
parent15db2e9496703d76b2d785a9e2a1554833706e06 (diff)
downloadruby-a58611dfb1bfc74fb1a51a9cd0ca8ac690c2f1f4.tar.gz
Allow to just warn as bool expected, without an exception
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index c420aaca3c..35e797f5b9 100644
--- a/error.c
+++ b/error.c
@@ -1273,7 +1273,7 @@ check_highlight_keyword(VALUE opt, int auto_tty_detect)
switch (highlight) {
default:
- rb_bool_expected(highlight, "highlight");
+ rb_bool_expected(highlight, "highlight", TRUE);
UNREACHABLE;
case Qtrue: case Qfalse: case Qnil: break;
}