Skip to content

Commit dbabe7a

Browse files
committed
Properly set the message of Exceptions on TruffleRuby
* From truffleruby/truffleruby@1f81db8
1 parent d7110e3 commit dbabe7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/psych/psych_to_ruby.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ static VALUE build_exception(VALUE self, VALUE klass, VALUE mesg)
1010
{
1111
VALUE e = rb_obj_alloc(klass);
1212

13+
#ifdef TRUFFLERUBY
14+
rb_exc_set_message(e, mesg);
15+
#else
1316
rb_iv_set(e, "mesg", mesg);
17+
#endif
1418

1519
return e;
1620
}

0 commit comments

Comments
 (0)