summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2019-12-20 23:48:15 +0900
committerNobuyoshi Nakada <[email protected]>2019-12-20 23:48:15 +0900
commit07e595fdbd75ed44473073cdf8cd758572d11709 ()
tree05adbd2b9d08690bed5be134acf2cb4111c4ea07 /error.c
parentdd7f0c87c9da8e695c38a6529deb6e0f24f6d06c (diff)
Added `experimental` warning category
[Feature #16420]
-rw-r--r--error.c3
1 files changed, 3 insertions, 0 deletions
@@ -144,6 +144,9 @@ rb_warning_category_from_name(VALUE category)
if (category == ID2SYM(rb_intern("deprecated"))) {
cat = RB_WARN_CATEGORY_DEPRECATED;
}
else {
rb_raise(rb_eArgError, "unknown category: %"PRIsVALUE, category);
}