aboutsummaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/object.c b/object.c
index 0a764cc75f..1c0b1bf828 100644
--- a/object.c
+++ b/object.c
@@ -718,6 +718,8 @@ rb_to_id(name)
case T_SYMBOL:
id = SYM2ID(name);
break;
+ default:
+ rb_raise(rb_eTypeError, "%s is not a symbol", STR2CSTR(rb_inspect(name)));
}
return id;
}