mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
9432c2f8e9
commit
ead3306b60
1 changed files with 1 additions and 1 deletions
2
parse.y
2
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;
|
||||
|
|
Loading…
Reference in a new issue