1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-04-04 05:37:19 +00:00
parent 106595827a
commit f00035a4f7

View file

@ -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");