summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorÉtienne Barrié <etienne.barrie@gmail.com>2025-12-16 17:47:13 +0100
committerGitHub <noreply@github.com>2025-12-16 11:47:13 -0500
commitaab4f6287da4d8035035f7486072f149abf8dcc9 (patch)
tree132f7912951162ade6ea23d279970f77c39f7cbc /variable.c
parent09a29e1312121fed5704ac196413c3b5ecb83fd7 (diff)
Add the instance variable name and the module in Ractor::IsolationError (#15563)
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index a189927472..7a015a51e3 100644
--- a/variable.c
+++ b/variable.c
@@ -1447,7 +1447,8 @@ rb_ivar_lookup(VALUE obj, ID id, VALUE undef)
UNLIKELY(!rb_ractor_main_p()) &&
!rb_ractor_shareable_p(val)) {
rb_raise(rb_eRactorIsolationError,
- "can not get unshareable values from instance variables of classes/modules from non-main Ractors");
+ "can not get unshareable values from instance variables of classes/modules from non-main Ractors (%"PRIsVALUE" from %"PRIsVALUE")",
+ rb_id2str(id), obj);
}
return val;
}