diff --git a/parse.y b/parse.y index 816c3fb24d..9b7869b359 100644 --- a/parse.y +++ b/parse.y @@ -10738,7 +10738,7 @@ rb_check_id(volatile VALUE *namep) tmp = rb_check_string_type(name); if (NIL_P(tmp)) { tmp = rb_inspect(name); - rb_raise(rb_eTypeError, "%s is not a symbol", + rb_raise(rb_eTypeError, "%s is not a symbol nor a string", RSTRING_PTR(tmp)); } name = tmp;