summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index cac306671b..1078b85fcb 100644
--- a/eval.c
+++ b/eval.c
@@ -3950,7 +3950,7 @@ rb_longjmp(tag, mesg)
}
POP_TAG();
if (status == TAG_FATAL && ruby_errinfo == exception_error) {
- ruby_errinfo = Qnil;
+ ruby_errinfo = mesg;
}
else if (status) {
thread_reset_raised();