From f00035a4f7842b9cccbb43fc65d567ca2630d742 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 4 Apr 2013 05:37:19 +0000 Subject: 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 --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3