diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-04 05:37:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-04 05:37:19 +0000 |
commit | f00035a4f7842b9cccbb43fc65d567ca2630d742 (patch) | |
tree | 6cf88b0ce2a404718bb9be555fd2f2e429bb8fd4 /thread.c | |
parent | 106595827ad33295d2f5bd1c1255c87293215a54 (diff) | |
download | ruby-f00035a4f7842b9cccbb43fc65d567ca2630d742.tar.gz |
thread.c: error message
* thread.c (rb_thread_variable_get): fix error message. getter
doesn't modify thread variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2870,7 +2870,7 @@ rb_thread_variable_get(VALUE thread, VALUE id) GetThreadPtr(thread, th); if (rb_safe_level() >= 4 && th != GET_THREAD()) { - rb_raise(rb_eSecurityError, "Insecure: can't modify thread locals"); + rb_raise(rb_eSecurityError, "Insecure: can't access thread locals"); } locals = rb_iv_get(thread, "locals"); |