diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-26 00:43:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-26 00:43:46 +0000 |
commit | ead3306b608a50dbca531dc5d8a2bcccfae9e077 (patch) | |
tree | f5f2109dccbfdab834a74a961dcaa035476d5a41 /parse.y | |
parent | 9432c2f8e95b76e95e9aced8b45c30c2cfb5a791 (diff) | |
download | ruby-ead3306b608a50dbca531dc5d8a2bcccfae9e077.tar.gz |
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
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |