diff options
| author | John Hawthorn <john@hawthorn.email> | 2025-05-20 17:28:30 -0700 |
|---|---|---|
| committer | John Hawthorn <john@hawthorn.email> | 2025-05-21 12:23:14 -0700 |
| commit | 7b10660974dcdd7882a48a62cfc2a32c4a17aa85 (patch) | |
| tree | e89c1234a3f4faf724fe5db8079f8aec7267e233 /ractor.c | |
| parent | ef935705cfb1b4493b8b8cf112e435b554b3138a (diff) | |
Use rb_inspect for Ractor error
Previously the object was used directly, which calls `to_s` if defined.
We should use rb_inspect to get a value suitable for display to the
programmer.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13389
Diffstat (limited to 'ractor.c')
| -rw-r--r-- | ractor.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3163,7 +3163,7 @@ make_shareable_check_shareable(VALUE obj) return traverse_cont; } else { - rb_raise(rb_eRactorError, "can not make shareable object for %"PRIsVALUE, obj); + rb_raise(rb_eRactorError, "can not make shareable object for %+"PRIsVALUE, obj); } } |
