summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorDaisuke Aritomo <osyoyu@osyoyu.com>2025-12-16 15:15:28 +0900
committerJohn Hawthorn <john@hawthorn.email>2025-12-16 17:15:59 -0800
commit0fe111caa6885407960541bdb6de7ba3cd6aad73 (patch)
tree25ea340142a1a5fea3380e5c05f35874fd16ce6d /variable.c
parentcbcbbb2fbe57fb17b3bd6b93244c4f37f3626c7e (diff)
Respect encoding of ID in exception messages
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 686056fdb4..085ba240e4 100644
--- a/variable.c
+++ b/variable.c
@@ -3357,7 +3357,7 @@ rb_const_get_0(VALUE klass, ID id, int exclude, int recurse, int visibility)
if (!UNDEF_P(c)) {
if (UNLIKELY(!rb_ractor_main_p())) {
if (!rb_ractor_shareable_p(c)) {
- rb_raise(rb_eRactorIsolationError, "can not access non-shareable objects in constant %"PRIsVALUE"::%s by non-main Ractor.", rb_class_path(found_in), rb_id2name(id));
+ rb_raise(rb_eRactorIsolationError, "can not access non-shareable objects in constant %"PRIsVALUE"::%"PRIsVALUE" by non-main Ractor.", rb_class_path(found_in), rb_id2str(id));
}
}
return c;