summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
-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);
}