From ead3306b608a50dbca531dc5d8a2bcccfae9e077 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 26 Feb 2014 00:43:46 +0000 Subject: [PATCH] parse.y: refine error message * parse.y (rb_check_id): refine error message, expected a symbol or a string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;