summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-26 00:43:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-26 00:43:46 +0000
commitead3306b608a50dbca531dc5d8a2bcccfae9e077 (patch)
treef5f2109dccbfdab834a74a961dcaa035476d5a41 /parse.y
parent9432c2f8e95b76e95e9aced8b45c30c2cfb5a791 (diff)
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.y2
1 files changed, 1 insertions, 1 deletions
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;