aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/error.c b/error.c
index e662b4f08a..a70d021484 100644
--- a/error.c
+++ b/error.c
@@ -144,6 +144,9 @@ rb_warning_category_from_name(VALUE category)
if (category == ID2SYM(rb_intern("deprecated"))) {
cat = RB_WARN_CATEGORY_DEPRECATED;
}
+ else if (category == ID2SYM(rb_intern("experimental"))) {
+ cat = RB_WARN_CATEGORY_EXPERIMENTAL;
+ }
else {
rb_raise(rb_eArgError, "unknown category: %"PRIsVALUE, category);
}