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:
parent
106595827a
commit
f00035a4f7
1 changed files with 1 additions and 1 deletions
2
thread.c
2
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");
|
||||
|
|
Loading…
Add table
Reference in a new issue