[前][次][番号順一覧][スレッド一覧]

ruby-changes:28043

From: nobu <ko1@a...>
Date: Thu, 4 Apr 2013 14:37:28 +0900 (JST)
Subject: [ruby-changes:28043] nobu:r40095 (trunk): thread.c: error message

nobu	2013-04-04 14:37:19 +0900 (Thu, 04 Apr 2013)

  New Revision: 40095

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40095

  Log:
    thread.c: error message
    
    * thread.c (rb_thread_variable_get): fix error message.  getter
      doesn't modify thread variables.

  Modified files:
    trunk/thread.c

Index: thread.c
===================================================================
--- thread.c	(revision 40094)
+++ thread.c	(revision 40095)
@@ -2870,7 +2870,7 @@ rb_thread_variable_get(VALUE thread, VAL https://github.com/ruby/ruby/blob/trunk/thread.c#L2870
     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");

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]