summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-04 05:37:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-04 05:37:19 +0000
commitf00035a4f7842b9cccbb43fc65d567ca2630d742 (patch)
tree6cf88b0ce2a404718bb9be555fd2f2e429bb8fd4 /thread.c
parent106595827ad33295d2f5bd1c1255c87293215a54 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 95b045fc54..7b343a522d 100644
--- a/thread.c
+++ b/thread.c
@@ -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");